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
Facebook
Powered by Blogger
0 Comments
Your Comment is Submitted