Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hi every one,

1,210

can any one give real time examples for single ton class and where exactly we can use the single ton class?

can any one give real time examples for single ton class and where exactly we can use the single ton class?

4 REPLIES 4
Read only

GK817
Active Contributor
1,129

Hi Tanuja,

Check this - https://blogs.sap.com/2019/08/08/singleton-design-pattern-a-simple-yet-useful-example/

A search in the forum would give you more information as i got this by searching in forum.

Gaurav

Read only

former_member1716
Active Contributor
1,129

tanuja_tv,

Your title is completely irrelevant to your actual question. Please follow the community guidelines to get a better understanding on the forum.

Regarding Your question for singleton Class:

Singleton Classes are the ones that can be instantiated only once. The one advantage of the Singleton classes would give us the flexibility to be extended in future compared to Static methods. Also Test Double is another advantage. You need a good understanding on the concepts for better understanding.

There are plenty of resources on the same, you can start with some as mentioned below:

BLOG

Singleton Pattern

LINK

Regards!

Read only

bpawanchand
Active Contributor
1,129

Hi Tanuja,

Looks like you are new to the community. I can understand from your point of view that it is very important to know the place where you can find few examples. However, it is always a good approach to post a question after you have used the feature of search with in the community.

Well if you are not sure where to start in the community or where to find all the tags where you can find and search the content tag which you like is here.

Regards

Pavan Bhamidipati

Read only

matt
Active Contributor
1,129

Hi Tanuja.