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

Java program to get location meta data from an image

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

Archived Comments

1. what's the purpose of indexOf('t',10)
View Tutorial          By: pevi at 2011-02-22 04:23:20

2. 0
View Tutorial          By: zareen at 2011-08-20 08:27:28

3. great explanations.. some important words are miss
View Tutorial          By: Joshua Paul at 2015-04-14 03:43:44

4. Hello,
I have downloaded this code

View Tutorial          By: Parthasarathi at 2009-09-21 02:09:49

5. Can u tell it can also use for connecting to oracl
View Tutorial          By: Ankur Jain at 2010-08-06 05:31:08

6. In the block form of SMTP.start, is there a way to
View Tutorial          By: Roshan at 2012-02-02 11:48:53

7. what is self-executing program ? or dynamic data
View Tutorial          By: vasu at 2013-04-18 17:36:35

8. the spinner example is very nice...
View Tutorial          By: narendra at 2011-11-23 11:16:47

9. Hi got an error while executing :

j

View Tutorial          By: Hi, at 2009-07-06 01:09:35

10. @ Qui:

You can set the CSS Style:
View Tutorial          By: hache at 2010-06-22 02:02:56