Home / C++ Programming / Constructors and Destructors :: Discussion

Discussion :: Constructors and Destructors

  1. What is the technical word for the function ~FresherGate() defined in the following program?

      #include
       class FresherGate 
       {   
          int x, y;   
          public:     
          FresherGate(int xx = 10, int yy = 20 )    
          {       
              x = xx;        
              y  = yy;    
         }  
         void Display() 
        {      
            cout" " int main() 
     {
         FresherGate objGate;  
         objGate.Display();    
         return 0; 
     }
    

     

  2. A.

    Constructor

    B.

    Destructor

    C.

    Default Destructor

    D.

    Function Template

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment