In the below code i can't understand highlighted code...
#include<iostream>
#include<conio.h>
#include<Windows.h>
using namespace std;
class A
{
protected:
int data;
public:
void show()
{
data=2;//cout<<data;
}
};
class B : public A
{
public: B(const A &a): A(a) //explain this line please
{
cout<<data;
}
};
int main()
{
A a;
a.show();
B b = a;
getch();
return 0;
}