Question: Which statement is true about encapsulation while providing the broadest access allowed? A. Variables are private, and methods are private. B. Variables are private, and

Which statement is true about encapsulation while providing the broadest access allowed?

A. Variables are private, and methods are private.

B. Variables are private, and methods are public.

C. Variables are public, and methods are private.

D. Variables are public, and methods are public.

E. None of the above. 

Step by Step Solution

3.56 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The correct answer is B Variables are private and methods are public Encapsulation is a fundamental ... View full answer

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 Oracle Questions!