I would like some clarification about including classes in c++. I don't know the good way to do it because i don't know the differences between theme
#pragma once
#include "B.h" // Is it enough to include like this? ?
class B; // what this line does ?
class A : public B // what public B does here ?
{
// .......
};
So how do i know if i should use class b or public B or juste a #include "B.h" ? I hope i was clear enough and thanks for the help