MENU
Question -

Write any two similarities between Constructors and Destructors. Write the Function headers for constructor and destructor of a class Flight. 



Answer -

Similarities between Constructor and Destructor:
(i) Both have same name as of the class name.
(ii) Both handle the objects of a class.    [1]
Function Headers:

Constructor:
Flight ( )
Destructor:
~ Flight ( )    [1]

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×