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. I und. you guy's are using programming language to
View Tutorial          By: Ken at 2011-07-25 07:10:41

2. java use real world object ............
View Tutorial          By: yunus khan at 2012-12-07 08:24:47

3. i'm really hoping this example was wrote before 19
View Tutorial          By: Anonymous at 2009-06-07 21:00:18

4. comm.jar file for windows not available in sun. ca
View Tutorial          By: borus at 2015-03-25 07:19:57

5. Nice example to understand what does the string To
View Tutorial          By: Spha at 2011-07-14 08:00:03

6. it's very helpful for java beginner. thanks
View Tutorial          By: Pisal at 2012-12-03 05:00:54

7. are you have java code to read sms from gsm modem,
View Tutorial          By: ronized at 2009-01-01 20:36:24

8. aoa i am for the first time learning programing pl
View Tutorial          By: manaal siddiqui at 2011-11-02 09:38:00

9. Can you tught me matrix function and friend functi
View Tutorial          By: Shiv pratap singh at 2013-01-12 06:46:46

10. Very good description. I was quite confused before
View Tutorial          By: Donna at 2011-07-31 03:46:05