vendredi 24 août 2018

What design patten it is that the class variable has the class itself

A class variable that contains the class itself, for example, the main property of the class DispatchQueue

Question 1

What kind of design pattern it is? Is this so called singleton?

Question 2

How does the object initialized when referring this property?

Aucun commentaire:

Enregistrer un commentaire