#include #include #include "base.h" using namespace std; int main() { base b {10}; b.print(); cout << "\n"; base *p {&b}; //p points to the object p->print(); //the same -> operator we used with a pointer to a struct cout << "\n"; base& r {b}; //r refers to the object r.print(); cout << "\n"; return EXIT_SUCCESS; }