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. Hi
I am newly in java. I have one dought. I

View Tutorial          By: Saman at 2010-08-03 20:34:38

2. thanks for this sample.. it possible to handle the
View Tutorial          By: nel at 2011-06-13 22:59:45

3. I have successfully send sms after some trying....
View Tutorial          By: DILIP at 2012-01-19 14:38:50

4. I have a squid proxy installed as forward proxy an
View Tutorial          By: ruffy at 2012-12-20 12:34:15

5. example is good but in c++ we can't use printf().
View Tutorial          By: vikas at 2009-10-26 20:12:08

6. Hello,

When I put the source code i

View Tutorial          By: Pascal at 2013-03-25 09:12:47

7. hi ..

for second code which impleme

View Tutorial          By: Eng at 2009-02-21 03:53:29

8. very cool you said it! many thanks it's really coo
View Tutorial          By: ArAsh at 2008-12-11 06:41:13

9. im having problems with showDialog(int) who can i
View Tutorial          By: Samuel at 2013-06-30 05:13:38

10. how to solve this problem

javax.com

View Tutorial          By: bhamre sandeep at 2010-02-28 04:18:36