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. this site is very useful to the freshers ...

View Tutorial          By: sweth at 2009-09-02 18:53:46

2. Muchas gracias por tu codigo. Me ayudo a resolver
View Tutorial          By: David Nava at 2011-04-08 03:29:38

3. thanks a lot it was really helpful...........for d
View Tutorial          By: Joshi Rocky at 2010-01-29 14:13:40

4. Thanks, much appreciated!
Saved a great dea

View Tutorial          By: alan at 2009-08-14 01:35:01

5. i want full of information abt java
View Tutorial          By: sagar at 2010-08-23 06:42:40

6. provided examples are very useful.
View Tutorial          By: Technical Guy at 2010-04-25 08:12:06

7. Plz send me steps to configure and run project to
View Tutorial          By: sandeep kale at 2009-04-08 07:23:45

8. Thank alot
View Tutorial          By: Naganatarajan at 2010-01-07 05:54:17

9. Sorry, I can't understand what is really apply and
View Tutorial          By: Ejita at 2012-02-01 05:38:09

10. some more examples should be given...
View Tutorial          By: flora at 2010-12-08 03:32:50