Protecting Methods

From RAD Studio
Jump to: navigation, search

Go Up to Creating methods Index

All parts of classes, including fields, methods, and properties, have a level of protection or "visibility," as explained in Controlling Access. Choosing the appropriate visibility for a method is simple.

Most methods you write in your components are public or protected. You rarely need to make a method private, unless it is truly specific to that type of component, to the point that even derived components should not have access to it.

Topics

See Also

Retrieved from "https://docwiki.embarcadero.com/RADStudio/Sydney/e/index.php?title=Protecting_Methods&oldid=264378"