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
The correct answer is B Variables are private and methods are public Encapsulation is a fundamental ... View full answer
Get step-by-step solutions from verified subject matter experts
