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. I need dumps for practice
View Tutorial          By: Sanket barge at 2011-06-17 10:05:16

2. i fixed it already...

how can I get

View Tutorial          By: kathleen ashley at 2010-08-08 04:51:26

3. Hi I am developing a code for data transfer from
View Tutorial          By: Rajavel at 2014-03-21 14:17:54

4. It's so crazy to the adventures of J2ME side and w
View Tutorial          By: jaikarthik at 2009-01-18 23:42:42

5. Exception in thread "main" java.lang.NoC
View Tutorial          By: RobustTm at 2008-12-18 23:19:46

6. the 2 not required lines
1) #include

View Tutorial          By: saurabh at 2012-02-20 06:33:57

7. Hi,first of all thats for this code developer, its
View Tutorial          By: Kathir at 2008-02-08 06:16:51

8. Thank you for this useful script! It works very we
View Tutorial          By: Giuseppe at 2010-12-09 05:35:43

9. When i run the program,Iam getting this

View Tutorial          By: anitha at 2008-12-17 21:37:36

10. very good introduction.thanx to the authr of this
View Tutorial          By: anjali at 2011-06-17 02:14:48