Thursday 10 September 2009

destructor in c++ with example

(2) Why destructors in c++? Answer: Goal of c++ is to create such type of class which is very similar to basic data type like int char, float etc. Each basic data type in c++ has one of the storage class (auto, register, static and extern) on the basis of storage class each data member has different scope and visibility. For example auto variable has scope and visibility within block i.e. when

No comments:

Post a Comment