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. So I appreciate this website, however... would it
View Tutorial          By: Christina at 2013-02-06 16:46:12

2. This example is very useful to me,but i wnat more
View Tutorial          By: vaishali at 2010-12-06 08:20:18

3. Hi
I tried to use this class , I don't get

View Tutorial          By: arnav at 2015-03-27 06:01:22

4. Great Thanks
View Tutorial          By: seedimani at 2009-09-16 01:27:26

5. Thank so much it helped me God bless :)
View Tutorial          By: Judito at 2014-06-14 06:52:18

6. Hello,
Thank you very much for this sample

View Tutorial          By: Alex at 2010-08-12 07:30:32

7. more info needs to be given ............
View Tutorial          By: sufficient for new commer at 2008-05-09 00:41:58

8. ya its good example
View Tutorial          By: vijaychellappa at 2010-11-10 04:57:42

9. java.lang.IllegalArgumentException means usually t
View Tutorial          By: Seink at 2008-11-12 11:03:00

10. Gooooooooooodd !!!
View Tutorial          By: Digvijoyee at 2010-08-30 22:11:31