BuezaWebDev
02-03-2005, 06:16 AM
Hey guys,
I need some clarification on the theory of polymorphism and abstract classes.
I have an abstract parent class called "Mom", and I have child classes with different sizes, "Mark", "Jaime", "Ben", and "John".
Mom has an abstract method...
abstract int getSon(int x) {
}
How would I be able to a driver class to make Mom distinguish the name of her son when she is only given the size?
This would clear up a lot of theory for me!
Kind regards,
Jaime Bueza
I need some clarification on the theory of polymorphism and abstract classes.
I have an abstract parent class called "Mom", and I have child classes with different sizes, "Mark", "Jaime", "Ben", and "John".
Mom has an abstract method...
abstract int getSon(int x) {
}
How would I be able to a driver class to make Mom distinguish the name of her son when she is only given the size?
This would clear up a lot of theory for me!
Kind regards,
Jaime Bueza