...
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024
OOPS
August 29, 2024

OOPS

Question 55
Data members and member function of a class by default is respectively :
A
private and public
B
public
C
public and private
D
private
Question 55 Explanation: 
If we do not specify any access modifiers for the members inside the class then by default the access modifier for the members will be Private.
Correct Answer: D
Question 55 Explanation: 
If we do not specify any access modifiers for the members inside the class then by default the access modifier for the members will be Private.

Leave a Reply

Your email address will not be published. Required fields are marked *