In: Civil Engineering
Overloading the insertion (<<) and extraction (>>) operators for class use requires creating operator functions that use these symbols but have a parameter list that includes a class ____.
object
address
reference
data type
Flag this Question
Question 210 pts
When overloading the insertion operator to process a Complex object, it’s important to understand that you’re overloading an operator in the ____ class.
istream
operator
Complex
ostream
Flag this Question
Question 310 pts
____ class variables are allocated memory locations independent of any object being instantiated.
Register
Static
Extern
Global
Flag this Question
Question 410 pts
Static member ____ can only access static data members and other static member ____ of the class.
references, variables
functions, functions
objects, variables
variables, functions
Flag this Question
Question 510 pts
A nonmember function can access private class data members as a(n) ____.
operator
friend
privileged function
static function
Flag this Question
Question 610 pts
Conversion from a built-in type to a class type is made using a(n) ____ constructor.
object conversion
type conversion
copy
type exchange
Flag this Question
Question 710 pts
____ is the capability of deriving one class from another class.
Polymorphism
Overloading
Inheritance
Redefinition
Flag this Question
Question 810 pts
Overriding a base member function by using an overloaded derived member function is an example of ____.
scoping
inheritance
polymorphism
derivation
Flag this Question
Question 910 pts
If a base class member has a protected access and the derived class’s access specifier is public, the derived class member is ____ to its class.
global
public
protected
private
Flag this Question
Question 1010 pts
When a derived class object is assigned to a base class object, only the set of all the ____ class data members is assigned.
derived
private
base
instantiated
All answers are in bold word
1)Overloading the insertion (<<) and extraction (>>) operators for class use requires creating operator functions that use these symbols but have a parameter list that includes a class Object.
2)When overloading the insertion operator to process a Complex object, it’s important to understand that you’re overloading an operator in the Istream class.
3)Global class variables are allocated memory locations independent of any object being instantiated.
4)Static member Functions can only access static data members and other static member Variables of the class.
5)A nonmember function can access private class data members as a(n) Friend.
6)Conversion from a built-in type to a class type is made using a(n) type conversion constructor.
7)Inheritance is the capability of deriving one class from another class.
8)Overriding a base member function by using an overloaded derived member function is an example of inheritance.
9)If a base class member has a protected access and the derived class’s access specifier is public, the derived class member is Protected to its class.
10)When a derived class object is assigned to a base class object, only the set of all the base class data members is assigned.