Consider the following class definition. class dClass: bClass { //class members
ID: 3645597 • Letter: C
Question
Consider the following class definition.class dClass: bClass
{
//class members list
};
The class dClass is derived from the class bClass using the ____ type of inheritance.
public
private
protected
static
To overload a member function of the base class, _____.
the name of the function and the formal parameter list of the corresponding function in the derived class must be same
the name of the function must be different, and the formal parameter list of the corresponding function in the derived class must be same
the name of the function and the formal parameter list of the corresponding function in the derived class must be different
the name of the function must be the same, and the formal parameter list of the corresponding function in the derived class must be different
Which of the following is not true about public inheritance?
All the public member functions of the base class become the public member functions of the derived class.
All the public member variables of the base class become the public member variables of the derived class.
All the public members of the base class become the public members of the derived class.
The the public member variables of the base class become the private member variables of the derived class.
What is the data type of pDist?
Distance * pDist;
Distance
Const pointer to Distance
Pointer to Distance
Pointer to MAX
Given the definition of a class called Employee, which of the following correctly dynamically allocates an array of 20 Employee objects?
Employee * myData = new Employee[20];
Employee myData[20] = new Employee[20];
Employee = myData[20];
Employee array = new Employee[20];
Explanation / Answer
Public the name of the function and the formal parameter list of the corresponding function in the derived class must be different All the public member variables of the base classbecome the public member variables of the derived class
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.