can anyone define class in brief?
Same with struct, but with advanced encapsulation.
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.
it is used to create user-defined data types, which are very useful in object oriented programming.And code some program to orient objects.
basically a class is a user defined data type. simply speaking its an blue print of an object which may belong to that class.
class in simple terms is a type of data