Study the following class interface for the class Aeroplane: class AeroPlane { public: void set_new_height (double new_height); void view() const; void view_new_height() const; AeroPlane(); AeroPlane (double new_height); AeroPlane (double new_height, double new_speed); AeroPlane(int new_height, int new_speed); private: }; double height; double speed; Which of the following constructors is called for the object declaration c1(18, 199)? AeroPlane() AeroPlane (double new height)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
Study the following class interface for the class AeroPlane:
class AeroPlane
{
public:
void set_new_height (double new_height);
void view() const;
void view_new_height () const;
AeroPlane();
AeroPlane (double new_height);
AeroPlane (double new_height, double new_speed);
AeroPlane(int new_height, int new_speed);
private:
};
double height;
double speed;
Which of the following constructors is called for the object declaration AeroPlane
c1(19, 199)?
Aeroplane()
AeroPlane (double new_height)
Aeroplane (double new_height, double new_speed)
AeroPlane(int new_height, int new_speed)
Transcribed Image Text:Study the following class interface for the class AeroPlane: class AeroPlane { public: void set_new_height (double new_height); void view() const; void view_new_height () const; AeroPlane(); AeroPlane (double new_height); AeroPlane (double new_height, double new_speed); AeroPlane(int new_height, int new_speed); private: }; double height; double speed; Which of the following constructors is called for the object declaration AeroPlane c1(19, 199)? Aeroplane() AeroPlane (double new_height) Aeroplane (double new_height, double new_speed) AeroPlane(int new_height, int new_speed)
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT