Visible classes
When you create a class, you subclass from or extend an existing defined class. The class that you subclass or extend must be visible to your application. That is, the existing class must be a public class and it must be defined in one of the following:
• The application that contains the class you are creating
• A subapplication of that application
• A prerequisite of that application
Classes that meet at least one of the above criteria are, understandably, called visible classes.
When a class is visible to an application, the application can reuse that class as follows:
• Add a new class as a subclass of it
• Extend it
• Send a message to it
A class's definition can be incorrect if the existing class is not visible to your class's containing application. Similarly, a class's behavior can be incorrect if its methods refer to a class that is not visible.
Last modified date: 06/27/2019