You are on page 1of 1

constructor and destructor and copy constructor

constructor overloading
access spercifiers and friend fn
function/method overloading
inheritancce
exception handling
templets
libriers
Constructor:
only inilization is done.
Distructor:
'~'
Eg: class line
{
Line();//constructor
~Line();//distructor
}
we can delete the space using 'delete' or 'free'
there are 5 call by methods.
copy construction:
object is parameter for copy constructor.
dinamic memory ellocation:
ptr=new int;
access specifier:
public
private
Proctected
we can access private variables using methods in that class
Eg: A::getwidth()

You might also like