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 with two Children? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inheritance with two Children?" Watch "Inheritance with two Children?" New topic
Author

Inheritance with two Children?

Rik Ny
Greenhorn

Joined: Oct 13, 2001
Posts: 13
If I have an abstract class with two children, then how do I create an object of each of the children from the driver??
Cheers,
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Child1 child1 = new Child1();
Child2 child2 = new Child2();
or
Abstract child1 = new Child1();
Abstract child2 = new Child2();
??


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inheritance with two Children?
 
Similar Threads
Heh, another good reason to vote Democrat this year
Lazy fetching JTree
Enumeration Question
WA #2 ..... word association
WA #1.....word association