Answered step by step
Verified Expert Solution
Question
1 Approved Answer
D Which of the following statements is false? O Private members can only be accessed from the inside of the class unless from a friend
D Which of the following statements is false? O Private members can only be accessed from the inside of the class unless from a friend class or a friend function. 0 A public data eld or function in a class can be accessed by name in any other program. 0 A protected data eld or a protected function in a base class can be accessed by name in its derived classes. 0 You cannot have a protected constructor. Question 5 5 pts Which of the following statements is true? 0 An abstract class is like a regular class and you can create objects from it. Q You can declare a class abstract even though it does not contain abstract functions. 0 An abstract class is declared using a keyword abstract. 0 A class is abstract if it contains a pure virtual function. D Question 1 5 pts In the following class definition, what is the name of the subclass? class Rose: public Flowe r { Flower O Rose Flower O Flower Rose Rose None of theseD Question 4 5 pts Which of the following is the correct syntax for defining a class named Table, which inherits from the class named Furniture? O class Table: public Furniture { O class Furniture: public Table { }; O class Table (Furniture) { O class Table (Furniture) ;D Question 3 5 pts Which of the following is an abstract function? O virtual double getArea () ; O virtual double getArea () = 0 ; O double getArea () = 0; O double getArea ()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started