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



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. The synchronization schedule function has been red
View Tutorial          By: Kim at 2014-11-12 10:52:13

2. from docs api api/java/awt/Frame/setOpacity:

View Tutorial          By: robert at 2014-12-12 07:48:59

3. good one
View Tutorial          By: saurabh at 2012-01-17 04:43:29

4. I dont want my client using my application to do a
View Tutorial          By: zaffa at 2011-07-27 06:52:09

5. really understandable
but 'm expecting with

View Tutorial          By: rajkumar at 2008-03-14 03:53:21

6. Good work!

Few changes: polish oper

View Tutorial          By: Karol Z. at 2010-06-02 09:09:52

7. syntax of java program in looping statement
View Tutorial          By: lokesh at 2009-03-25 06:57:56

8. very good explanation for Include Action in struts
View Tutorial          By: VIshwanath at 2011-03-21 06:00:22

9. Your code will not execute using above main method
View Tutorial          By: Gajanan Patil at 2012-05-09 04:42:29

10. But I have the same error ("javax.net.ssl.SSL
View Tutorial          By: azeemuddin at 2010-03-04 07:25:33