Skip to content

make constructor protected so that the class actually behaves like a … - #6

Open
aashan10 wants to merge 1 commit into
mantrabrain:masterfrom
aashan10:dev
Open

make constructor protected so that the class actually behaves like a …#6
aashan10 wants to merge 1 commit into
mantrabrain:masterfrom
aashan10:dev

Conversation

@aashan10

@aashan10 aashan10 commented Aug 4, 2020

Copy link
Copy Markdown

since the class had public constructor, it could be initialized without using the instance static method. Made constructor protected so that the class actually behaves as a singleton and can't be initialized without using the initialize method.

@aashan10

aashan10 commented Aug 4, 2020

Copy link
Copy Markdown
Author

@ughimire :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant