A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Inheritance with two Children?
Joined: Oct 13, 2001
Oct 13, 2001 02:38:00
If I have an abstract class with two children, then how do I create an object of each of the children from the driver??
Marilyn de Queiroz
Joined: Jul 22, 2000
Oct 13, 2001 03:23:00
Child1 child1 = new Child1();
Child2 child2 = new Child2();
Abstract child1 = new Child1();
Abstract child2 = new Child2();
"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:
subject: Inheritance with two Children?
WA #2 ..... word association
Lazy fetching JTree
Heh, another good reason to vote Democrat this year
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014