Object Oriented Language Flashcards
What is the terminology required?
Objects, classes, polymorphism, encapsulation and inheritance
Describe an object
A logical unit that contains both properties and methods that manipulate it. Methods normally take the form of functions and procedures and allow messages in to and out from the object.
Describe a class
A class is the design of an object A class can be used to create an object - an instance of a class. multiple instances can be created from the same class the values of the properties may differ but the methods will stay the same.
Describe inheritance
sub-classes can be derived from existing classes. The new classes will have all the existing properties of existing classes.
Describe encapsulation
sub-classes can be derived from existing classes. The new classes will have all the existing properties of existing classes.
Describe polymorphism
Where sub-classes can respond differently to identical messages from the super class. The same syntax but different semantics.
How to instantiate an object
Dim objectName = New className(value1, value2, value3)
How to declare an array of objects
Dim arrayName(arrayLength) As className
Arrays terminology
Inherits, overrides, the procedure call invokes the - method, no overriding method, method used to get the value (don’t access directly)