#include <iostream>

class A
{
	friend class B;
protected:	
	A();
	A(std::string title, int xpos, int ypos);
};

A::A()
{
	//Do something
}
A::A(std::string title, int xpos, int ypos)
{
	//Do something
}

class B : A
{
protected:
	//Is that correct?
	A* m_pA;	
	//Why not just A* m_pA;? 
public:
	B(std::string title, int xpos, int ypos);
};

B::B(std::string title, int xpos, int ypos)
{
	m_pA = new A(title, xpos, ypos);
}

int main() {
	
	return 0;
}