Singleton design Pattern

Hi,
AS we know we have singleton design pattern it means we can create only
one instance of single object

if somebody change the data member of the through singleton object than how can
be prevent this condition
I believe in C++ we can apply a const keyword on a class correct ?

E.g
const ObjA = <Factory>.getInstance();

Above say ObjA data members are read-only.
Topic archived. No new replies allowed.