Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions