0% found this document useful (0 votes)
30 views186 pages

OOP TechKnowledge

The document discusses explicit type conversion, which allows programmers to manually change data types when implicit conversion rules do not apply. It explains abstract classes, which contain at least one pure virtual function and require subclasses to implement these functions. Additionally, it mentions the use of virtual destructors to free memory allocated by derived class instances when deleting them through a base class pointer.

Uploaded by

Yashodhan Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views186 pages

OOP TechKnowledge

The document discusses explicit type conversion, which allows programmers to manually change data types when implicit conversion rules do not apply. It explains abstract classes, which contain at least one pure virtual function and require subclasses to implement these functions. Additionally, it mentions the use of virtual destructors to free memory allocated by derived class instances when deleting them through a base class pointer.

Uploaded by

Yashodhan Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 186

an explicit conversion allows the programmer to manually changes or typecasts the data type from one variable

to another type.We force the explicit type conversion to convert data from one type to another because it does
not follow the implicit conversion rule
abstract clss is a classs which contains atleast one pure virutal function in it,abstract class are uses to provide
interface for its sub classes.
classes inherting an abstract class must implement all pure virtual function or else they become abstract too.

A virtual destructor is used to free up the memory space allocated by the derived class object or instance while deleting
instances of the derived class using a base class pointer object

You might also like