Home
About Us
Privacy Policy
Disclaimer
Contact Us
Breaking News
Home-icon
Web Development
_JavaScript
_php
Computer
_DLD
English
_Functional English
Programing
_JavaScript
_php
_Java
_C
Mega Menu
Home
programing
inheritance example 5 (lecture 7.5)
inheritance example 5 (lecture 7.5)
by -
Brain Light
on -
April 04, 2018
class Animal{
void eat(){System.out.println("eating...");}
}
class Dog extends Animal{
void bark(){System.out.println("barking...");}
}
class TestInheritance{
public static void main(String args[]){
Dog d=new Dog();
d.bark();
d.eat();
}}
Source Lecture (Inheritance)
Next Lecture
Previous lecture
Post a Comment
0 Comments
Social Plugin
Popular Posts
Introduction to PHP (lecture 1)
September 03, 2018
Super Key words (lecture 9)
July 07, 2018
logic gates and truth tables in dld
July 10, 2018
Facebook
Powered by Blogger
0 Comments
Your Comment is Submitted