Question: O-1] Consider the ciass Pen. a has a color (String) and a length (double) and a price (double) he main class of another Test class,
O-1] Consider the ciass Pen. a has a color (String) and a length (double) and a price (double) he main class of another Test class, do the following Ppen a file called "Peninfo" for reading Fead repeatedly untel the end of the file the information of Peos, each pen in a separate line n every iteration, create an object of type Pen, and fill it with the intormation you read pisplay the information about the Pen you created using the toString0 method Pisplay the total price of all Pen objects
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
