Examine the following code and select the correct option(s):
public class Person { public int height; public void setHeight(int newHeight) { if (newHeight <= 300) height = newHeight; } }
d
This class isn't well encapsulated because its instance variable height is defined as a public member.
Because the instance variable can be directly accessed by other classes, the variable doesn't always use the method setHeight()
to set its height.
The class Person can't control the values that can be assigned to its public variable height.