#include <iostream>
#include <string>
class Example {
private:
int m_A;
std::string m_Str;
public:
Example() : m_A(0), m_Str("***") {}
void Print() const {
std::cout << m_A << " " << m_Str << "\n";
}
};
int main() {
Example* ex = new Example(); // new = heap
ex->Print();
delete ex; // delete the object
}
/*
run:
0 ***
*/