16,984 views
0 votes
0 votes
A struct is the same as a class except that

(A) there are no member functions.

(B) all members are public.

(C) cannot be used in inheritance hierarchy.

(D) it does have a this pointer

1 Answer

Best answer
1 votes
1 votes
Option B is correct since, by default, all members of a struct are public whereas in a class, by default, all members are private.
selected by

Related questions

0 votes
0 votes
1 answer
3
ajit asked May 12, 2015
492 views
Given a string,in which anything except digits are treated as separators, and between each set of separators,there is some substring. count number of separators and subst...