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



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. In the above example..where you make the GC1 objec
View Tutorial          By: prasad at 2014-12-11 11:12:28

2. Can you explain when the user input through the ab
View Tutorial          By: mujmil at 2008-02-11 18:46:00

3. neded defination in clear
View Tutorial          By: venkat at 2011-07-04 06:31:19

4. i am getting the following error when i ran this p
View Tutorial          By: nancy kapoor at 2008-10-07 14:26:21

5. it is not working
View Tutorial          By: shaishav at 2013-06-20 08:03:06

6. This is probably a good java tutorial but it made
View Tutorial          By: lol at 2012-09-15 21:20:09

7. I need full code for how to connnect pc to mobile
View Tutorial          By: Vijay at 2009-08-23 23:38:05

8. I request to java beacuse i hope java language

View Tutorial          By: jeey at 2011-07-06 07:59:07

9. unzip jquery-ui-1.10.3.custom

and c

View Tutorial          By: ajmal at 2013-06-06 10:44:55

10. The code for CharArrayReader is not working. So, w
View Tutorial          By: Maya Joshi at 2012-06-23 14:30:26