Multiple Choice
Which of the following statements about a class is correct?
A) A class should not have private instance variables.
B) Private instance variables are the interface to the class.
C) Private instance variables hide the implementation of a class from the class user.
D) Private instance variables should rarely be used in classes.
Correct Answer:

Verified
Correct Answer:
Verified
Q57: Which of the following statements about objects
Q58: You are creating a class named Employee.
Q59: Consider the following code snippet:<br>Public class Coin<br>{<br>Private
Q60: Insert the missing code in the following
Q61: You have created a ShoppingCart class and
Q63: Consider the following code snippet:<br>Public class Vehicle<br>{<br>Private
Q64: Which of the following declares a rpmRating
Q65: Which of the following is NOT part
Q66: Which of the following statements using data
Q67: Insert the missing code in the following