Which of the below statements are true about a class?
i. Class is a data type.
ii. By using class we can achieve data abstraction
iii.class is also called as ADT (Abstract data type)
i & ii
i, ii, & iii
Class is a data type because you can create variables for it. You can achieve data abstraction with class by using access modifiers to data members. Class is also called as ADT because you achieve abstraction with class + class is a data type so it is abstract data type.
Back To Top