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. nice
View Tutorial          By: narendra at 2012-04-23 09:40:00

2. hi to all i m getting this error plz solve it and
View Tutorial          By: krishna prasad at 2011-10-28 10:16:26

3. Detect OS of iphone using Java Code
View Tutorial          By: Naina at 2012-07-31 11:07:09

4. Superb article
View Tutorial          By: Raj at 2015-01-29 11:18:22

5. i have created the main class to run the five clas
View Tutorial          By: Muraya at 2014-04-08 14:48:36

6. Hi

I want the java code for i

View Tutorial          By: Deepak at 2015-07-29 15:07:09

7. quite helpful
View Tutorial          By: kezyRoan at 2011-06-11 03:58:52

8. Aoa. could anybody guide me about jsf with hibern
View Tutorial          By: imtiaz afridi at 2011-12-03 12:19:04

9. 27: What happens if the producer and the customer
View Tutorial          By: Spender at 2010-07-25 14:42:08

10. can you give me tutorial how to copy phonebook to
View Tutorial          By: rico at 2010-04-04 21:07:57