0

What is class?

Class is basic building blocks. That support building program. Class name is user defined data type. And object is variable of that data type. Example Class myself //define class myself obj =new myself //define object New keyword used for allocate memory for objects ( variable of user defined data type) .

26th Apr 2018, 1:56 PM
shrikant chavan
shrikant chavan - avatar
1 Answer
0
class is a user defined type declared with keyword class which has some data members and member fuction which has some access specifiers like private ,public ,protected. eg . class a { int q;//data members public://access specifiers void sum ();//member function }
26th Apr 2018, 7:48 PM
goutham natarajan
goutham natarajan - avatar