Question: U Question 29 1 pts What does a friend function do? It sings Barney songs and makes you feel good It's defined outside a class,
U Question 29 1 pts What does a friend function do? It sings Barney songs and makes you feel good It's defined outside a class, but has access to even private members of the class It's defined inside the class, and allows the class to provide access to private members O friend functions are no longer allowed in C++ D Question 30 1 pts What does the line MyClass::name = name most likely do? It creates an instance of MyClass called "name" Olt probably copies the parameter name to the instance variable name of MyClass It copies the instance variable name to the parameter name It doesn't do anything D Question 31 1 pts What does a static member variable do? It always stays the same It provides access to another instance of the same class It's a single variable shared by all instances of the class It refers to the class itself
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
