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
Get step-by-step solutions from verified subject matter experts
