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. voire pluse a des command java
View Tutorial          By: lahcine moubarek at 2009-02-16 01:59:17

2. Great Article...thanks :)
View Tutorial          By: Paras Chawla at 2012-10-28 04:35:57

3. Okay, I have implemented this and it works, except
View Tutorial          By: Matthew at 2009-06-16 13:08:48

4. iam getting intrest to watch this site
View Tutorial          By: monika at 2013-02-15 15:48:57

5. Thanks a lot. It was very helpful
View Tutorial          By: Faith Justin at 2008-12-07 06:52:29

6. array is the one which can save similar data typed
View Tutorial          By: Cegonsoft Reviews at 2011-07-26 00:54:18

7. hi ramlak,i am getting sender *** time out at step
View Tutorial          By: agnas at 2008-05-02 01:29:33

8. hi plz help
how do we change project develo

View Tutorial          By: pratik jogwar at 2012-06-07 19:58:47

9. give the picture view of connecting vb.net with my
View Tutorial          By: Murugamani at 2014-09-09 06:12:58

10. hi there, i was testing your code-samples,

View Tutorial          By: Douglas at 2011-04-07 22:35:56