S
SK
i have a class A and I have a singleton class B.
i am accessing the object of B from A and is using B's
method from most of the methods of A.
Is it good practice to create the singleton Bs instance in
the constructor of A or in some methods of A?
i am accessing the object of B from A and is using B's
method from most of the methods of A.
Is it good practice to create the singleton Bs instance in
the constructor of A or in some methods of A?