Question: What's wrong with the class itself? What's wrong with line 18? What's wrong with line 19? What's wrong with line 20? State True or False

What's wrong with the class itself? What's wrong with line 18? What's wrong with line 19? What's wrong with line 20? State True or False for each of the following statements about friend function. i. Friend function is a member function. ii. Friend function is declared, not defined, in a class. iii. Friend function has the right to access the public and private members of the class in which it is declared. iv Friend function is inherited. v. Friend function of a class can be a member function of another class. Write the function header of the default copy constructor for a class called A. Write one default constructor prototype of a class called A. Write a destructor of class B that deletes the object pointed by the pointer ptr. Write the class header of a class called B that use protected inheritance to inherit class J. Write a statement that dynamically create an object of class B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
