How will a class protect the code inside it?
A. Using Access specifiers
B. Abstraction
C. Use of Inheritance
D. All of the mentioned
Answer:A
How will a class protect the code inside it?
A. Using Access specifiers B. Abstraction C. Use of Inheritance D. All of the mentioned
Explanation: Each method or variable in a class may be marked ‘public’ or ‘private’. They are called Access Specifiers.