• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classes

 
Manoj Zachariah
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The compiler resolves the dependency by searching the classpath.
 
Manoj Zachariah
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ December 18, 2003: Message edited by: Marilyn de Queiroz ]
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It makes no difference whether the classes are in the same file or in different files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic