Which class in the following code is the Parent class as per the syntax of C++.

#include

using namespace std;
 
class B
{
  //code
};
  
class A : public B
{
  //code
};

1
Class B
2
Class A
3
Class A and B.
4
More than one of the above
5
None of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation