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. nice 1
View Tutorial          By: vivek at 2013-03-19 16:25:47

2. this helped a lot!!!!
View Tutorial          By: karthik rk at 2012-09-04 16:32:25

3. so good .to give easy understand
View Tutorial          By: ashok .my no 9618738732 at 2010-02-15 06:19:48

4. Great article! Simple and precise. Thanks!
View Tutorial          By: dz at 2014-10-06 04:36:56

5. well written hog .good going
View Tutorial          By: Rajesh at 2010-08-17 03:38:05

6. class Foo implements Runnable{


View Tutorial          By: DeeNKHAN at 2013-03-02 06:54:13

7. this is very good example.
View Tutorial          By: jyoti raman ray at 2010-10-13 22:17:09

8. it's very nice answer
View Tutorial          By: ahmedmohsen at 2011-12-31 19:26:09

9. Thanks friend this code will really help me

View Tutorial          By: Anonymous at 2009-05-04 20:16:58

10. Only first row is exported, help to export all the
View Tutorial          By: Achyut at 2014-12-18 04:26:26