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. Awsome...Example...
View Tutorial          By: sitakanta at 2011-12-05 12:22:03

2. Hi you will run this program just as you run any o
View Tutorial          By: Steven at 2008-10-14 09:03:28

3. had the sample problem.. java.io.IOException: HTTP
View Tutorial          By: java at 2012-08-22 09:39:57

4. hi the code is working fine till step5 and am gett
View Tutorial          By: raj at 2008-09-16 22:55:40

5. thank you sir
View Tutorial          By: sivaranjani at 2015-01-30 01:15:40

6. i understand but i want many information and prog
View Tutorial          By: malathi at 2013-03-29 23:52:28

7. Hey guys it's working. If not then remove p.waitFo
View Tutorial          By: dileep at 2013-01-04 19:51:38

8. your second last example in above code (Character
View Tutorial          By: jyoti at 2011-11-06 17:01:19

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

10. i m happy this programs thsk
View Tutorial          By: jai at 2011-05-09 14:20:35