Base Class Subclass
| |
OOP: Creating Object-Oriented Programs
Classes and Instances
What is a class?
What is an instance?
How does a class differ from an instance?
Instances are objects. In Visual Basic, classes are not objects.
Properties
Protection levels for properties:
 |
Private - only accessible within the methods of a class.
Accessibility is not inherited.
|
 |
Protected - only accessible within the methods of a class and its
subclasses. Accessibility is inherited.
|
Property Accessors
 |
Get - publicly available function to return the value of a class's
property.
|
 |
Set - publicly available procedure to set a class's property.
|
Methods
Protection levels for methods:
 |
Private - only callable within the methods of a class.
Accessibility is not inherited.
|
 |
Protected - only callable within the methods of a class and its
subclasses. Accessibility is inherited.
|
 |
Public - callable inside and outside of the methods of a class.
These form the class's public interface. Accessibility is inherited.
|
Overridable and Overides...
Constructors

| |
|