Which among the following is false for class features?
A. Classes may/may not have both data members and member functions
B. Class definition must be ended with a colon
C. Class can have only member functions with no data members
D. Class is similar to union and structures
Answer:B
Which among the following is false for class features?
A. Classes may/may not have both data members and member functions B. Class definition must be ended with a colon C. Class can have only member functions with no data members D. Class is similar to union and structures