strong and weak keywords in Swift
strong and weak keywords in Swift: In Swift, Strong and weak are keywords used when dealing with reference types (usually classes) to manage memory and prevent strong reference cycles (retain cycles). Strong Reference (strong): By default, all references in Swift are strong. A strong reference increases the reference count of the object it points to,…