Question: 2. Assume the following method has been defined inside the Furniture class public void display () double price 150.0; if (this.material.equals (leather) price price+ 37.5;
2. Assume the following method has been defined inside the Furniture class public void display () double price 150.0; if (this.material.equals ("leather") price price+ 37.5; System.out.println ("Price of this furniture is " price); a. Evaluate this method using the design for reuse criteria? b. Evaluate this method using the separation of concerns criteria? c. Rewrite the display method based on your answers to 2.a and 2.b. (This includes writing additional methods as you see fit.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
