+ 2
can anyone define class in brief?
5 Answers
+ 2
Same with struct, but with advanced encapsulation.
+ 1
A class is a user defined type or data structure declared with keyword class that has data and functions ( methods ) as its members whose access is governed by the three access specifiers private, protected or public.
+ 1
it is used to create user-defined data types, which are very useful in object oriented programming.And code some program to orient objects.
0
basically a class is a user defined data type. simply speaking its an blue print of an object which may belong to that class.
0
class in simple terms is a type of data