I wanted to know where myClass objects allocated exactly so I drew allocation flow
class MyClass {
static let shared = MyClass()
private init() { }
}
let myClass = MyClass.shared
myClassconstant is allocated in StackmyClassconstant point to Heap whereMyClassis allocatedMyClass.sharedstatic property point toMyClass()where allocated in Heap
Is this flow right? Am I misunderstood something?
