Question: Lab Abstraction JAVA Create an Abstract Class WritingUtensil Properties: color, size Method: writethat returns a string NOTE: An abstract class does not implement the method,

Lab Abstraction JAVA

Create an Abstract Class WritingUtensil

Properties: color, size

Method: writethat returns a string

NOTE:

An abstract class does not implement the method,

An abstract class cannot be instantiated(made into an object), the sub classes can

Create 2 Classes

PenProperty:ink color

Implement write to return a string statingthe ink color is not erasable

Pencil

Implement write to return a string stating the pencilwriting is erasable

Create Driver/Tester Class

Creates one pen

Creates one pencil

Callswrite for the pen, printing the returned string

Calls write for the pencil, printing the returned string

IncludeComments

Submit:

All class and driver files

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!