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. how to refresh the radiobuttons during the run tim
View Tutorial          By: Vishnupriya at 2009-02-04 03:25:24

2. Very nice tutorial........
View Tutorial          By: Santosh Saha at 2010-04-11 05:58:51

3. Thanx................!!!!!!!!!!!
View Tutorial          By: ankita at 2012-01-21 19:16:54

4. hi, IF ANY ONE REALLY INTRESTED TO RUN THIS PROGRA
View Tutorial          By: sunil kumar sahu at 2010-10-09 11:50:56

5. can we use this code in a web application. your he
View Tutorial          By: phani at 2008-09-17 06:15:26

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

7. i need some more basic programes in java
View Tutorial          By: nivin at 2012-10-19 09:14:27

8. THIS IS VERY SIMPLE AND EXCELENT PROGRAM.THIS PROG
View Tutorial          By: CHIRANJEET at 2011-02-05 12:13:54

9. Really awesome keep posting ........
View Tutorial          By: viswanath at 2013-01-30 07:38:13

10. Hi,
My problem is that how to connect the r

View Tutorial          By: Twahie at 2011-03-21 05:31:06