Home / C++ Programming / Objects and Classes :: Discussion

Discussion :: Objects and Classes

  1. Which of the following statement is correct about the program given below?

    #include  class Freshergate 
    {   
        int x;     
        float y;  
        public:    
        void Function()   
       {       
           x = 4;       
           y = 2.50; delete this;     
       }   
       void Display()  
       {      
          cout" " int main() 
    {   
       Freshergate *pgate =newFreshergate();        
       pBix->Function();   
       pBix->Function();    
       pBix->Display();   
       return 0;  }

     

  2. A.

    The program will print the output 4 2.5.

    B.

    The program will print the output 4.

    C.

    The program will report runtime error.

    D.

    The program will report compile time error.

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment