What is the difference between struct and class in terms of Access Modifier?
A) by default all the struct members are private while by default class members are public.
B) by default all the struct members are protected while by default class members are private.
C) by default all the struct members are public while by default class members are private.
D) by default all the struct members are public while by default class members are protected.
Correct Answer:
Verified
Q1: Every class has at least one constructor
Q3: The default access level assigned to members
Q4: There is nothing like a virtual constructor
Q5: Which of the following operators allow defining
Q6: Which type of class has only one
Q7: What is a constructor?
A)a class automatically called
Q8: Under what conditions a destructor destroys an
Q9: When class B is inherited from class
Q10: Which one of the following is not
Q11: Variables declared in the body of a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents