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. i m happy this programs thsk
View Tutorial          By: jai at 2011-05-09 14:20:35

2. using a same name ,return type and parameter type
View Tutorial          By: sam at 2011-06-24 15:13:34

3. Where should I call the action /editRegistration?
View Tutorial          By: Andrei at 2013-03-08 12:21:07

4. good work.
if there is a ValidatorForm the

View Tutorial          By: floriano at 2008-10-09 07:23:16

5. hi i am new to JSP wht is class.forname in the cod
View Tutorial          By: chanti at 2011-05-07 03:02:26

6. Using ForwardAction for Integration is Good, Which
View Tutorial          By: Ramesh Ram at 2013-06-05 17:57:25

7. finally! tnx google for taking me here :) my probl
View Tutorial          By: dorinn at 2009-04-02 10:32:40

8. For Jaime,

Maybe using JavaScript f

View Tutorial          By: Jair Aviles at 2011-11-22 05:49:05

9. very clear explanation. thank for sharing explanat
View Tutorial          By: toto at 2011-07-18 01:04:56

10. not satisfied...

want to print the

View Tutorial          By: nikhil jha at 2010-03-08 04:25:50