Comment on Tutorial - Inheritance Example in Java By Watson



Comment Added by : Gajanan Patil

Comment Added at : 2012-05-09 04:42:29

Comment on Tutorial : Inheritance Example in Java By Watson
Your code will not execute using above main method it will give following 2 errors while compiling

inheritanceBicycl.java: cannot find symbol
symbol : class mountainBike
location: class inheritanceBicycle
mountainBike m = new mountainBike(1,2,300,4);
^
inheritanceBicycl.java: cannot find symbol
symbol : class mountainBike
location: class inheritanceBicycle
mountainBike m = new mountainBike(1,2,300,4);
^


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. programming is really exciting specially with c++^
View Tutorial          By: Jully at 2010-07-28 18:42:23

2. I am getting the error below.

Tue J

View Tutorial          By: ganesh at 2008-07-01 05:35:31

3. Hi...i know java but little....
give simple

View Tutorial          By: Murshidha at 2012-02-06 09:52:52

4. Hi
I have final project whit sms program.
View Tutorial          By: AliPour at 2011-09-11 16:51:19

5. hi..!!
In the above code samples there is a

View Tutorial          By: chiru at 2009-07-03 03:29:18

6. Does not work.
View Tutorial          By: Hallo at 2012-10-25 09:50:05

7. Nice explanation.But please explain left shift an
View Tutorial          By: Ramesh Kanagaraj at 2013-03-28 14:27:30

8. Hi, I tried this code to send sms from my PC which
View Tutorial          By: Jothi at 2009-05-15 03:19:54

9. thank you, this best for student like us,
View Tutorial          By: Srinath at 2012-05-12 15:04:03

10. Hello,
how to use tjis tut for load image f

View Tutorial          By: zero at 2013-10-30 11:45:33