Skip to content

Commit e57ac2c

Browse files
committed
Update Singleton Pattern
1 parent fba7ca5 commit e57ac2c

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

singletonPattern/main.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/*
22
* main.cpp
3-
*
43
* @Created on: 12-December-2019
5-
* @Author: Chandramohan Jagtap
6-
7-
* @Description:
8-
* Singleton Pattern main file.
4+
* @Author: Chandramohan Jagtap
5+
6+
* @Description:
7+
* Singleton Pattern main file.
98
*/
109

1110
#include "singletonPattern.hpp"
@@ -14,4 +13,4 @@ int main(int argc, char const *argv[])
1413
{
1514
SingletonClass::getInstance()->TestingSingletonClass();
1615
return 0;
17-
}
16+
}

singletonPattern/singletonPattern.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/*
22
* singletonPattern.cpp
3-
*
43
* @Created on: 12-December-2019
5-
* @Author: Chandramohan Jagtap
6-
7-
* @Description:
8-
* Singleton Pattern class file.
4+
* @Author: Chandramohan Jagtap
5+
6+
* @Description:
7+
* Singleton Pattern class file.
98
*/
109

1110
#include "singletonPattern.hpp"
@@ -27,4 +26,4 @@ void SingletonClass::TestingSingletonClass()
2726
{
2827
cout << "Hello from singltone class" << endl;
2928
}
30-
29+

singletonPattern/singletonPattern.hpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/*
22
* singletonPattern.hpp
3-
*
43
* @Created on: 12-December-2019
5-
* @Author: Chandramohan Jagtap
6-
7-
* @Description:
8-
* Singleton Pattern Header file.
4+
* @Author: Chandramohan Jagtap
5+
6+
* @Description:
7+
* Singleton Pattern Header file.
98
*/
109
#ifndef _SINGLETONE_PATTERN_HPP_
1110
#define _SINGLETONE_PATTERN_HPP_
@@ -23,4 +22,4 @@ class SingletonClass
2322
SingletonClass& operator=(SingletonClass const&); // assignment opertor private
2423
};
2524

26-
#endif /*_SINGLETONE_PATTERN_HPP_ */
25+
#endif /*_SINGLETONE_PATTERN_HPP_ */

0 commit comments

Comments
 (0)