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. Interfaces contains all abstract methods(with out
View Tutorial          By: Mahesh at 2012-11-09 06:14:47

2. i got an error msg at runtime of jdbc program with
View Tutorial          By: madhu sudan at 2012-06-17 02:52:53

3. Thank you for good explanation. I am thinking of u
View Tutorial          By: Darshan at 2012-06-22 15:44:57

4. Hi Rima,

Check out http://forums.su

View Tutorial          By: Ramlak at 2008-12-28 03:00:01

5. keep it up!
View Tutorial          By: kamran at 2010-04-13 07:01:26

6. Hi I need code examples J2ME for chating aplicatio
View Tutorial          By: agus at 2010-04-03 04:16:11

7. Hi, I have the following element:

&

View Tutorial          By: gardek at 2009-09-02 14:40:37

8. Very good article thanks for sharing.
View Tutorial          By: priti at 2012-08-29 11:32:07

9. In 6th point .....there is a spelling mistake...mi
View Tutorial          By: Gnani at 2009-09-22 12:25:59

10. Thanks to OP and Zarno for finishing off this code
View Tutorial          By: Soapy Balls at 2011-05-27 05:26:13