This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classes" Watch "classes" New topic
Author

classes

Manoj Zachariah
Ranch Hand

Joined: Dec 08, 2003
Posts: 65
if i write a java program with two classes, each class in a separate file. how can i inherit one class from the other?
thanks!!!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9137
    
    9

The compiler resolves the dependency by searching the classpath.


[How To Ask Questions On JavaRanch]
Manoj Zachariah
Ranch Hand

Joined: Dec 08, 2003
Posts: 65
i'm a beginner here, so can you tell me the parameters i should pass while compiling the above program. :roll:
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9056
    
  12

[ December 18, 2003: Message edited by: Marilyn de Queiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9056
    
  12
It makes no difference whether the classes are in the same file or in different files.
 
Have you checked out Aspose?
 
subject: classes
 
It's not a secret anymore!