Skip to content

Instantly share code, notes, and snippets.

View jinpa-t's full-sized avatar
:atom:

Jinpa jinpa-t

:atom:
View GitHub Profile
@jinpa-t
jinpa-t / a.cpp
Created June 17, 2022 16:41
Forward Declaration of class in C++.
#include "a.h"
#include "b.h"
std::string A::name() {
return "class A";
}
void A::check(B* b) {
std::cout << "From class A: object is from ";
b->name();