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. I have a squid proxy installed as forward proxy an
View Tutorial          By: ruffy at 2012-12-20 12:34:15

2. very good helped me a lot
View Tutorial          By: Swaran at 2009-12-30 09:51:36

3. thanks for this pertinent remark.
View Tutorial          By: mohammed at 2009-02-21 05:43:11

4. how to comapre two hash map
View Tutorial          By: vinay at 2013-05-03 10:21:57

5. Cant be compiled, i got error with this msg:. cann
View Tutorial          By: ken at 2011-04-17 04:32:36

6. Thanks

I was really helpful.

View Tutorial          By: saroj khatiwoda at 2015-06-02 12:17:51

7. Hello, this is working fine with jpg file. But I w
View Tutorial          By: Ray at 2015-09-01 04:18:00

8. Can u show how to do text to speech with servlet.
View Tutorial          By: Rotika at 2011-01-23 20:54:40

9. I tried to use the code's but getting one error as
View Tutorial          By: Ashish at 2009-03-23 03:10:22

10. thanks for this tutorial! it's very useful
View Tutorial          By: Miguel at 2011-06-26 21:15:00