Question: Programming Being a friend function of a class. it can D A Access both private and public data members, B) Access neither private nor public
Being a friend function of a class. it can D A Access both private and public data members, B) Access neither private nor public data members. c) only access the private data members: 7. D) Only access the public data members, For class. class Time private: public: Time operator (double mul) const; When we have two objects Time A, B; double value; which of the following expression is true B) B*A; A) value B C) A*B; D A value; oran 8. With class Orange: public Fruit, i.e. Fruit is the base class, an object of type Orange and to delete an object type Orange of constructor and destructor are called respectively? Fruit; A) Constructor Fruit, orange, destructor orange, Fruit; B) orange, Fruit, destructor orange, Constructor destructor Fruit, Orange. Fruit, Orange, Fruit, Orange
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
