Question: Question 13 (0.66 points) What refactoring should you perform on the code below? public class Car { public String make; public String model; public Car()

 Question 13 (0.66 points) What refactoring should you perform on the

Question 13 (0.66 points) What refactoring should you perform on the code below? public class Car { public String make; public String model; public Car() { // other methods not shown public class CarLot { // fields, constructors not shown public void setupLot() { Car carl = new Car(); carl.make = "Ford"; carl.model = "Focus"; // other code not shown } O Encapsulate field Inline method O Extract method Decompose conditional Question 14 (0.66 points) Class cohesion refers to O a class representing one well-defined entity O a method carrying out a single task the responsibility to manipulate data stored within the class O the interconnectedness of one class with others

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!