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. thanks....good explanation...
View Tutorial          By: jiby at 2012-01-14 05:57:33

2. just what i needed to understand iterators, gj
View Tutorial          By: oak at 2009-04-20 15:46:39

3. Hello there , i am unable to understand read and w
View Tutorial          By: deepak at 2014-12-10 14:04:42

4. Dudes

I used the abov

View Tutorial          By: Nithin p at 2013-01-06 06:54:33

5. Thanks it worked. Just remember to restart apache
View Tutorial          By: Raj at 2014-02-08 08:42:26

6. hi all i receive below error can any one help me p
View Tutorial          By: Purushothaman at 2009-04-03 17:38:42

7. Thank you!!!

just to make things c

View Tutorial          By: Oscar Torres at 2015-02-19 14:25:05

8. How can I execute the JSP program?
Please

View Tutorial          By: Suresh at 2013-01-04 06:43:10

9. Hi, thi's sursh laveti, actually I'm getting a pro
View Tutorial          By: suresh l at 2015-06-24 07:53:19

10. Precise information in the article, however it wou
View Tutorial          By: Ketan at 2009-06-23 05:07:39