Comment on Tutorial - Method Overriding in Java By Henry



Comment Added by : Shashikumar Misal

Comment Added at : 2012-09-01 20:35:47

Comment on Tutorial : Method Overriding in Java By Henry
Programs are so good..!
i wish to say one thing
when we invoke the show(); method
in main method as y1.show(), it wil b
executes properly and to invoke
base class method show() one can
use super keyword or base class object.

But in c++ calling y1.show(); wil give ambiguty error. there we hav to cal as Y:: y1.show();

am i right?
please reply.


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. how does struts work in netbeans 6.9.1?what are th
View Tutorial          By: gunavathi at 2014-05-14 08:00:56

2. thanks for this sample.. it possible to handle the
View Tutorial          By: nel at 2011-06-13 22:59:45

3. string is immutable in java.String buffer is mutab
View Tutorial          By: krishnakumar at 2009-10-19 00:35:44

4. very thanks... It's very useful to me...
Th

View Tutorial          By: swathi. M at 2015-01-02 16:32:19

5. Very informative and simple to understand. Thank y
View Tutorial          By: Rosa Vladivord at 2012-12-23 13:00:52

6. hi,
i am safeer, i am try this program in

View Tutorial          By: Safi at 2009-05-22 22:32:04

7. Doesn't the getline() on line 14 read "once u
View Tutorial          By: poo at 2011-02-22 00:32:44

8. hi,
can you tell me how to run the code to

View Tutorial          By: raghu at 2008-12-26 03:15:52

9. please somebody tell me how to run this applicatio
View Tutorial          By: black Panther at 2008-04-01 02:08:09

10. Nice Article....
View Tutorial          By: Vipin Joshi at 2008-04-13 15:35:42