Which function is invoked automatically to destroy an object?
Destructor function
Constructor function
Inline function
Friend function
What is the correct syntax to assign an object ob1 to ob2 of a class 'read' using copy constructor?
ob2=ob1;
ob2=read(ob1);
read(ob2,ob1);
read ob2(ob1);
Which constructor function is designed to copy objects of the same class type ?
Create constructor
Object constructor
Copy constructor
Dynamic constructor
What is called default constructor ?
A constructor that accepts one parameter
A constructor that accepts two parameters
A constructor that accepts no parameter
A constructor that accepts three parameters
What is the return type that is used for all constructors ?
Void
int
float
No return type
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);
When an object is created which function will be automatically invoked ?
Static function
Which of the following cannot be inherited ?
Public data members
Constructor functions
Void functions
Overloaded + operators
Which of the following is used in copy constructor to receive its arguments ?
Either pass-by-value or pass-by-reference
Only pass-by-value
Only pass-by-reference
Only pass-by-address
Which keyword is used to create a constant object?
Constant
const
final
just object name and parameters are needed.