#include "Singleton.h"
using namespace std;
void useSingleton(){
Singleton* singletoneg= Singleton::getInstance();
singleton->doSummut();
// this shouldn't be allowed
Singleton* doubleton;
doubleton->doSummutElse();
}
int main(int argc, char** argv) {
useSingleton();
return (EXIT_SUCCESS);
}
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......