#include using namespace std; class BarT { public: BarT(int i, string j) { data = i; otherData = j; } void Spill() { cout << data << " " << otherData << endl; } void Increment( ) { data++; } private: int data; string otherData; }; int main() { int * foo{nullptr}; BarT * bar {nullptr}; BarT other(3,"world"); other.Spill(); bar = new BarT(7,"Hello"); (*bar).Spill(); bar->Spill(); delete bar; foo = new int; *foo = 7; cout << " foo is " << foo << endl; cout << " *foo is " << * foo << endl; return 0; }