courtenayt
asked on
Java abstract class extending abstract class - do I need to declare abstract methods in 2nd abstract class?
Hi,
I'm writing some Java classes and I would like to have the following structure:
abstract class submittedForm
abstract class submittedFormType extends submittedForms
class formA extends submittedFormType
Question:
A: Is this a valid way to design my code with an abstract class extending an abstract class?
B: If I declare an abstract method in submittedForm, can I wait to implement that method in formA, or do I also need to reference that abstract method in the submittedFormType abstract class as well?
Thanksin advance,
Courtenay
I'm writing some Java classes and I would like to have the following structure:
abstract class submittedForm
abstract class submittedFormType extends submittedForms
class formA extends submittedFormType
Question:
A: Is this a valid way to design my code with an abstract class extending an abstract class?
B: If I declare an abstract method in submittedForm, can I wait to implement that method in formA, or do I also need to reference that abstract method in the submittedFormType abstract class as well?
Thanksin advance,
Courtenay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
fast response
:)
ASKER