Question: Please review image Identify the object - oriented principle applied in this code. public class Customer { private String name; private int age; / /
Please review image Identify the objectoriented principle applied in this code.
public class Customer
private String name;
private int age;
Constructors and other methods
public String getName
return name;
public int getAge
return age;
a Classes are about behavior and functionality.
b Code to an interface rather than to an implementation.
c Each class in your application should have only one reason to change.
d Encapsulate what varies.
e None
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
