How many member functions are there in this C++ class excluding constructors and destructors?
class Box
{
int capacity;
public:
void print();
friend void show();
bool compare();
friend bool lost();
};
class Box
{
int capacity;
public:
void print();
friend void show();
bool compare();
friend bool lost();
};A. 1
B. 2
C. 3
D. 4
Answer: Option B

Join The Discussion