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. give some good examples very bad i dont lke dis ex
View Tutorial          By: abinaya banu at 2014-07-14 06:04:28

2. good job
by- shiv at 2010-11-26 11:51

View Tutorial          By: shiv kumar bind at 2010-11-25 23:20:28

3. Hi,
this is excellent stuff and I highly ap

View Tutorial          By: Nanda at 2007-11-02 04:58:30

4. Pl send some sample program for speech to text wit
View Tutorial          By: gokul at 2012-09-27 10:28:19

5. The above example for abstract class is very good.
View Tutorial          By: saafia at 2013-08-19 14:33:54

6. Hi
Its nice example ..
som

View Tutorial          By: munirasu at 2011-04-01 06:38:46

7. What is SMSC and CSCA number? , in which JAVA file
View Tutorial          By: sampath at 2009-06-19 07:01:31

8. Very helpful.
View Tutorial          By: Krishna at 2012-06-14 10:25:00

9. What is transient keyword in Java?


View Tutorial          By: Mohit at 2010-11-18 00:26:24

10. Can i have CreateAddressBook.java?? really need it
View Tutorial          By: KIM at 2012-12-02 11:45:20