When an object is created which function will be automatically invoked ?
Friend function
Destructor function
Static function
Constructor function
Which of the following cannot be the constructor of class 'Student'?
Student(){ }
Student(int a,int b){ }
public Student(int a){ }
student(int a,int b,float c){ }
Which of the following is correct for invoking a constructor-" read(int x,int y){ };" ?
read ob;
read (2,3);
read ob(2.3,3);
read ob(2,3);
Which keyword is used to create a constant object?
Constant
const
final
just object name and parameters are needed.
Which of the following will make the invocation of the object constructor-"read(int x,int y=3){ }" ?
read ob();
read ob(2);
read ob(2.0);
none of these.
Which constructor function is designed to copy objects of the same class type ?
Create constructor
Object constructor
Copy constructor
Dynamic constructor
Which of the following cannot be inherited ?
Public data members
Constructor functions
Void functions
Overloaded + operators
What is the sign used in the declaration of destructor ?
!
?
#
~
Which function is invoked automatically to destroy an object?
Inline function
What will happen in dynamic construction of objects?
Creating objects dynamically.
Allocating memory of objects dynamically.
Dynamic object construction.
Static object construction.