```
#include <iostream>

class SomeClass
{
 public: int *SomeNumber;

 SomeClass() { SomeNumber = new int; *SomeNumber = 5; }

 ~SomeClass() { delete SomeNumber; }
 int getSomeNumber(void) { return *SomeNumber; }

};

int main()
{

SomeClass A;
std:: cout << A.getSomeNumber() << std::endl; // outputs 5
std:: cout << A.SomeNumber << std::endl; // outputs SomeNumber address

return 0;
}

```

How can I get \*SomeNumber, not its address, by not using the method getSomeNumber()? If SomeNumber were not a pointer to a int, I could get it with A.SomeNumber

Sorry If I were not clear enough.
Thanks in advance.