Classes & Objects


  1. Pick out the correct option.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    We cannot make an instance of an abstract base class


  1. Where does the abstract class is used?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    base class only



  1. Which interface determines how your class will be used by another program?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    If we invoked the interface as public means, We can access the program from other programs also.


  1. Pick out the correct statement about the override.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Overriding refers to a derived class function that has the same name and signature as a base class virtual function



  1. What does the cerr represent?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    cerr is an object of class ostream that represents the standard error stream. It is associated with the cstdio stream stderr.