Type Cast Operator.ppt
Type Cast Operator.ppt
•
• An object can be created by using new, and destroyed
by using delete, as and when required. A data object
created inside a block with new, will remain in existence
until it is explicitly destroyed by using delete. Thus, the
lifetime of an object is directly under our control and is
unrelated to the block structure of the program.
• The new operator can be used to create objects of
any type. It takes the following general form: