1. A derived class inherits the constructor functions of the baseclass. T F 2. A
ID: 3611499 • Letter: 1
Question
1. A derived class inherits the constructor functions of the baseclass. T F2. A virtual function is called based on the dynamic data type ofthe calling object. T F
3. Assume the following function prototype is provided in thedeclaration of a class named Myclass:
virtual void input(istream&);
Which of the following is a valid function header for thisprototype?
1. virtual void input(istream& in)
2. virtual void Myclass::input(istream& in)
3. void Myclass::input(istream& in)
4. void input(istream& in)
5. void Myclass::virtual input(istream &in)
Thanks for all the help!
Explanation / Answer
1. false 2.true 3.D 4.D 5.A 6.true 7.true
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.