Question: 1- shape class: -Fields: name, color. - Constructor: that receive parameters to give the fields their values. -toString method that print out the fields. 2-Towdimension

 1- shape class: -Fields: name, color. - Constructor: that receive parameters

1- shape class: -Fields: name, color. - Constructor: that receive parameters to give the fields their values. -toString method that print out the fields. 2-Towdimension class: which is a subclass from shape class. -Fields: sides, angles. -Constructor: that receive parameters to call superclass constructor and give the fields their values. -tostring method that override the superclass method and print out the all fields

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!