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
Practice Program 1 (lecture 14 || Basic Level)
August 25, 2018
Write an HTML document that contains an input 1ext box of collect a student name and have a checkbox to select the sport he likes watching form baseball, basketball, football and volleyball form will be submitted to file sport.php. write a PHP script that displays the name of the student and the sport he likes.
July 14, 2019
inheritance example 4 (lecture 7.4)
April 04, 2018
Facebook
Powered by Blogger
0 Comments
Your Comment is Submitted