Comment on Tutorial - Method Overriding in Java By Henry



Comment Added by : Umapathi REddy

Comment Added at : 2012-05-23 09:54:29

Comment on Tutorial : Method Overriding in Java By Henry
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();
}
}
//it shows error can explain


View Tutorial



Ask a Question

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. Very good example! Thanks so much!
View Tutorial          By: Chrissy at 2010-04-14 22:37:56

2. Thanks alot! it works.I have also suffered alot du
View Tutorial          By: jiya at 2008-11-24 10:00:50

3. hiiis
i m working on project related to SM

View Tutorial          By: Parveen at 2008-08-08 13:23:20

4. hi!
how can i add variable form object to a

View Tutorial          By: rushi at 2015-07-16 08:18:58

5. aishwarya.. i also have that error.. have you solv
View Tutorial          By: Geok Lin at 2009-04-06 02:26:49

6. thnx, 4 ur explanation, that was usefl
but

View Tutorial          By: some1 at 2009-04-28 03:26:28

7. Really a great article!
I have some questio

View Tutorial          By: ron at 2010-03-30 01:37:12

8. very good example and explanation. This kind of p
View Tutorial          By: jagdish at 2011-07-03 15:15:02

9. sir can you write the sample proram of this:

View Tutorial          By: bryan labastida at 2011-06-29 02:53:14

10. hello sir , i just implement your code and modify
View Tutorial          By: tushar at 2012-01-31 05:21:37