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



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. The example program by itself doesn't solve any pu
View Tutorial          By: Fazal at 2008-03-17 21:23:10

2. i din understand
View Tutorial          By: panda at 2011-07-14 09:35:36

3. The above code is not for storing values it return
View Tutorial          By: vinoj at 2010-04-28 15:58:47

4. Its Very Good Example
View Tutorial          By: Madhu at 2011-08-26 12:11:49

5. Great stuff!!!

The clickLink functi

View Tutorial          By: Harro at 2008-10-13 07:25:26

6. Thanks for the Topic. But there are many more comp
View Tutorial          By: Uditha Madumal at 2010-09-15 19:39:13

7. This is Nice start for programmer '
Thanks

View Tutorial          By: Sagar Ikhankar at 2011-07-22 06:12:44

8. one of the best example for trim()....
View Tutorial          By: sharad at 2013-01-29 13:43:58

9. Hi,

Thanks a lot to the writer of t

View Tutorial          By: Bhushan at 2007-04-27 04:56:00

10. Artical is good but it is not clearly define that
View Tutorial          By: Rohit Saxena at 2010-09-02 04:00:11