Comment on Tutorial - Method Overriding in Java By Henry



Comment Added by : Umapathi REddy

Comment Added at : 2012-05-23 09:54:29

Comment on Tutorial : Method Overriding in Java By Henry
class Abc
{
public void display()
{
System.out.println("hai");
}
class Bca extends Abc
{
public void display()
{
System.out.println("hello");
}
}
public static void main(String[] args)
{
Bca obj =new Bca();
obj.display();
}
}
//it shows error can explain


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Excellent Example to explain the functions
View Tutorial          By: manish at 2010-08-05 03:10:43

2. Very precisely and simply explained.
View Tutorial          By: Deepak at 2015-01-05 08:37:01

3. thanks this material is very helpful for me
View Tutorial          By: Anonymous at 2009-05-09 08:04:31

4. very good example.....................
View Tutorial          By: sreeLakshmi at 2012-06-15 08:21:12

5. Hi sir, Your explain is very good sir,
View Tutorial          By: Surendra Majji at 2013-02-14 04:55:49

6. Hi
I have done all the steps mentioned abo

View Tutorial          By: Asela at 2012-01-26 18:53:51

7. Hello Friends ,

s1 == s2 will alway

View Tutorial          By: Gunjan at 2010-09-08 19:24:24

8. Hi DILIP !
Can you plz help me I have an ex

View Tutorial          By: Bull at 2012-01-25 16:16:36

9. This example really works and help a lot me to dis
View Tutorial          By: Monu Kumar at 2010-03-30 09:26:23

10. i really have to thank you for the wonderful fluid
View Tutorial          By: Joel Pereira at 2011-03-19 22:08:58