Comment on Tutorial - Method Overriding in Java By Henry



Comment Added by : SUNIL SHAH

Comment Added at : 2012-05-25 06:17:23

Comment on Tutorial : Method Overriding in Java By Henry
you have extended class Abc within class Abc
the correct code is
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();
}
}


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. hello,
i have to connect the crystal report

View Tutorial          By: shanmugaraj at 2010-03-03 04:08:30

2. i need to send some file usin a bluetooth devicem
View Tutorial          By: igle85 at 2012-01-25 06:27:50

3. Thank you for such a article. It is extreamly nice
View Tutorial          By: Ravi at 2011-08-23 10:04:14

4. Thank you sir.
View Tutorial          By: Balan at 2008-09-02 22:16:56

5. thank you..!!
really very helpful...

View Tutorial          By: sneha at 2012-01-30 18:01:16

6. thanks...helped a lot!!!!
View Tutorial          By: Sc21ac at 2013-05-03 03:44:06

7. Good one.. great for beginners..
View Tutorial          By: varun at 2009-09-29 14:18:04

8. thanks
View Tutorial          By: nitin at 2010-03-29 01:02:57

9. That's really daam !!! simple example :) .........
View Tutorial          By: akshay sharma at 2011-05-03 04:49:15

10. Sir, plz tell me how can I run the speech class in
View Tutorial          By: Nitin Govil at 2012-01-21 10:14:52