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



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. Mail me Codings in java of different programs
View Tutorial          By: vikram at 2008-09-12 06:04:42

2. very nice..!
View Tutorial          By: neeraj at 2012-04-21 11:12:08

3. Thank you for this useful script! It works very we
View Tutorial          By: Giuseppe at 2010-12-09 05:35:43

4. Excellent Article.
View Tutorial          By: Praveen Kumar S at 2011-03-24 23:14:44

5. hi i unable to retrive am getting below excepti
View Tutorial          By: vignesh at 2015-03-25 17:14:58

6. Animation code(very Similar to this) is not workin
View Tutorial          By: Rakesh Kumar at 2012-04-23 09:42:55

7. Hi i have studied these programs.
but unabl

View Tutorial          By: Karuna at 2008-03-30 08:46:00

8. Hey nice article Brian W. Kernighan and/or Dennis
View Tutorial          By: butt at 2013-01-17 07:12:21

9. I have to ask; Where do we put the text boxes?
View Tutorial          By: Jeremy at 2010-10-07 14:37:07

10. I agree with #2 u are missing that line
View Tutorial          By: ויזה לארה"ב at 2011-10-26 10:39:50