Within the implementation of a method, the identifier Self references the object in which the method is called. The Self variable is an implicit parameter for each object method. A method can use this variable to refer to its owning class.
To refer to the current instance of a class or structure, use the Self keyword. It provides a way to refer to the specific instance in which the code is currently executing. It is particularly useful for passing information about the currently executing instance.
You cannot use it with static method functions because static methods do not belong to an object instance. If you try, you'll get an error.
What a fabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. Mayo Clinic Patient Portal App
Posted 9/7/2023
www.prestwood.com
For service: 916-726-5675 or support@prestwood.com
Copyright (C) Prestwood IT Solutions. All Rights Reserved.