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