C++ MCQs - Classes & Objects

31. How to access the object in the class?

A. Ternary operator
B. Scope resolution operator
C. Direct member access operator
D. None of the above

View Answer


32. When struct is used instead of the keyword class means, what will happen in the program?

A. Access is public by default
B. Access is private by default
C. Access is protected by default
D. None of the mentioned

View Answer


33. Which of the following is not a member of class?

A. Static Function.
B. Friend Function
C. Const Function
D. Virtual Function

View Answer





Also check :


Discussion


* You must be logged in to add comment.