File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes inheritance doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "inheritance doubt" Watch "inheritance doubt" New topic
Author

inheritance doubt

lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
how do i code 2 java file that has inheritance. for example message, reply. reply will inherit from message. i know have to use extends. but how do pass variable?
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
For general OOPs and inheritance, you can check out this site and this site as well as about umpteen million other tutorials online.

Or are you asking a specific question on inheritance?

/Pete
[ March 17, 2007: Message edited by: pete stein ]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Inheritance is as simple as telling the compiler which class to extend (inherit from)...

At that point, a Reply IS-A Message.

I don't understand what you mean about passing variables. Can you be more specific?


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inheritance doubt
 
Similar Threads
How to show proper mail contant
Multiple Inheritance
multiple inheritance in java
inheritence in EJB 2.0
Inheritance is a waste