Podcast
Questions and Answers
Abstract class in C++:
Abstract class in C++:
- may represent a parameter type of a function or method
- is useful for declaring interfaces to other classes (correct)
- may represent the result type of a function
- may represent a type of pointer and object reference (correct)
output:
output:
- 1:(),2:(***)
- t1:(*), t2:(***)
- 1:(***),2:(*)
- 1:(*),2:(***) (correct)
The order of creating members of a compound object in C++ is as follows:
The order of creating members of a compound object in C++ is as follows:
- constructor body, object fields, virtually inherited class objects, non-virtual base classes
- object fields, constructor body, virtually inherited class objects, non-virtual base classes
- object fields, constructor body, non-virtual base classes, virtually inherited class objects
- virtually inherited class objects, non-virtual base classes, object fields, constructor body (correct)
Class destructor in C++ has the property:
Class destructor in C++ has the property:
The 'this' keyword in C++ has the following properties:
The 'this' keyword in C++ has the following properties:
execution of the program will display :
execution of the program will display :
Select one:
Select one:
Constructors in C++ do NOT have properties:
Constructors in C++ do NOT have properties:
Encapsulation in C++ has the following properties:
Encapsulation in C++ has the following properties:
The following declaration in C++:
class complex;
class Test {
void fun() throw ( int, complex );
};
declares:
The following declaration in C++:
class complex; class Test { void fun() throw ( int, complex ); };
declares: