Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!