Simple Friendship Question

Which one is valid(or maybe just better to use)?

1
2
3
4
5
6
class A{
friend class B;
};
class B{
friend class A;
};

Or
1
2
3
4
5
class A{
friend class B;
};
class B{
};
Topic archived. No new replies allowed.