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. notify does NOT wake up the first thread waiting.
View Tutorial          By: Armin at 2009-07-26 07:25:09

2. can u plz gimme a program in arrays for a student'
View Tutorial          By: hayati at 2013-12-05 14:45:27

3. Thank you for your help !
View Tutorial          By: vadym at 2010-03-03 06:35:01

4. is there any way to generate report without seagat
View Tutorial          By: Roshni at 2012-10-01 09:32:41

5. good but you don't express the programs examples
View Tutorial          By: anchal at 2010-09-29 02:40:02

6. I am getting error in setContentView(R.layout.main
View Tutorial          By: user at 2012-01-13 06:49:42

7. hi all,

i successfully executed the

View Tutorial          By: praveen at 2010-07-14 04:47:41

8. Awesome article. It's very useful. Despite it didn
View Tutorial          By: Matheus at 2015-02-24 12:06:05

9. it is nice but please give simple example like are
View Tutorial          By: red at 2009-12-03 23:07:37

10. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial          By: bugdrvr1970 at 2012-01-25 17:27:43