Comment on Tutorial - Inheritance Example in Java By Watson



Comment Added by : SM

Comment Added at : 2011-02-08 19:43:29

Comment on Tutorial : Inheritance Example in Java By Watson
Why do you need main, Sir?
MountainBike and Bicycle are public classes, so
you can create an application and use MountainBike or Bicycle as you need (with main defined in that application)
:-)
SM


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. Very nice article.. thanks
View Tutorial          By: Basu at 2010-05-29 05:52:00

2. I am suffering with the same error as of ganesh...
View Tutorial          By: Sri Bhavani at 2008-09-30 00:18:38

3. sir , i am new in j2me and i want to learn more s
View Tutorial          By: vipin Luhach at 2012-01-19 06:43:27

4. outstanding....
View Tutorial          By: subhasish biswas at 2009-04-19 00:16:50

5. I don't get it... there seem to be only two differ
View Tutorial          By: bibiki at 2012-04-05 02:01:32

6. http://www.java-samples.com/showtutorial.php?tutor
View Tutorial          By: Prab at 2009-04-13 11:54:17

7. my requirement is i have a source string as src{&q
View Tutorial          By: Anil at 2014-10-27 08:36:23

8. Hi got an error while executing :

j

View Tutorial          By: Hi, at 2009-07-06 01:09:35

9. how to display images in j2me?? thank you :)
View Tutorial          By: bill at 2011-06-23 23:59:41

10. Thanks
muchas gracias
Excellent

View Tutorial          By: Alfredo at 2010-05-31 09:00:36