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. thank you for this quick and easy demonstration. B
View Tutorial          By: rajesh at 2012-09-20 17:48:17

2. FILE:- lpton.pl......
.....................

View Tutorial          By: Prats at 2013-02-02 17:33:40

3. why the java program must be written in side the c
View Tutorial          By: surendra at 2009-04-01 09:02:42

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

5. Hi!
I would like to send a string from a j2

View Tutorial          By: beetlebrain at 2010-03-26 06:02:00

6. Hey thanks for your tutorial.

But i

View Tutorial          By: Matze at 2013-07-19 16:08:46

7. Realy good one
View Tutorial          By: Sabir at 2011-10-25 12:08:43

8. thanx. for this tutorial. i was having some doubt
View Tutorial          By: prabhash at 2011-09-06 10:15:19

9. Thanks for the tips.

I hesitated to

View Tutorial          By: Dick at 2011-10-09 15:21:50

10. Been looking at several website for a clear explan
View Tutorial          By: Jase at 2011-08-09 12:00:10