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



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 want to learn j2me basic to ....
View Tutorial          By: gopiraj at 2012-12-21 11:52:01

2. Very good post.^^
View Tutorial          By: LAM at 2009-10-25 04:18:38

3. hi how ru
anybody tell me that how to print

View Tutorial          By: imran at 2010-12-10 00:34:51

4. IN the above program at the line in ineerclass's p
View Tutorial          By: Narasimha at 2009-10-14 06:30:26

5. Please help me i am getting following error messag
View Tutorial          By: Balaji at 2009-09-23 22:54:06

6. Great! Thanks!
View Tutorial          By: sciarp at 2008-05-11 05:04:17

7. Hello, your post helped me a lot with solving my o
View Tutorial          By: Florian Brunner at 2008-06-26 08:59:42

8. (i'm a senior PHP programmer, but a newbie in JSP,
View Tutorial          By: LOL at 2013-03-22 08:57:21

9. Thanks for example..
But I have the same p

View Tutorial          By: Lina at 2009-05-02 13:23:33

10. Hi am saving data in to the internal memory.But ho
View Tutorial          By: harsha at 2012-04-27 07:48:45