Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer these questions: a) When should abstract classes be used ? Give a general answer and an example. b) Explain when an abstract class cannot
Answer these questions:
a) When should abstract classes be used ? Give a general answer and an example.
b) Explain when an abstract class cannot be used in a Java program and an interface is the only choice.
c) The Section class used in a text editor application includes a text attribute, contains a collection of objects of class Section or its subclasses, and has a method called display that displays the text of this section object and of all other sections referenced in its collection. What design pattern does class Section implement ? Explain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started