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
Variables in PHP. Variables are used to store data, like string of text
July 11, 2020
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
Facebook
Powered by Blogger
0 Comments
Your Comment is Submitted