Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Inheritance and Polymorphism MiniText is a class which takes Strings up to 100 characters long and posts them. It has the interface: public MiniText(String author)

Inheritance and Polymorphism

MiniText is a class which takes Strings up to 100 characters long and posts them. It has the interface:

public MiniText(String author)

public boolean postText(String text); // Returns true if the text string length is less than or equal to 100, and posts it

Write the class MiniTextWithLog which is a subclass of MiniText. It should have an ArrayList log, with accessor method, which saves all of the successfully posted texts. Use parent class methods and overriding wherever possible to implement this class.

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

Recommended Textbook for

More Books

Students also viewed these Databases questions