Object-Orientated Programming

?
  • Created by: Benwith
  • Created on: 07-07-19 13:43
Class
A class is a coded module that defines properties and methods, that are common to a given set of things.
1 of 21
Property
A property is coded by including an instance variable to represent that feature.
2 of 21
Method
A method is a procedure of function that holds the code for some kind of common behaviour for the class members.
3 of 21
Construction
(included in every class) The basic purpose is to give instance variables an initial value. It is not included in the class.
4 of 21
Abstract class
A class which cannot be instantiated (you cannot make a new one of these). A convenient way of grouping common properties of similar classes.
5 of 21
Concrete class
A class that you can make instances of (eg Alien, Game and Missile)
6 of 21
Object
An object is an individual instance of a given class. (eg Dim TheGame as NEW Game)
7 of 21
Instantiation
The creation of an instance of a given class. This is particularly done via the New() procedure
8 of 21
Encapsulation
All properties and methods for entities within the class are kept with the bounds of the class definition.
9 of 21
Inheritance
Is the relationship between 2 classes where a child class taken on/uses/has access to the same properties and method as the parent class that it is related to. It is a "kind of link" between classes.
10 of 21
Association
A term whcih expresses the fact that there is a relationship between 2 classes other than inheritance.
11 of 21
Aggregation
Gives a "uses" relationship.
12 of 21
Composition
Gives a "part-of" relationship.
13 of 21
Polymorphism
Literally means "taking many forms". Can be implemented via Overriding and Overloading.
14 of 21
Overloading
When a class can have two or more methods with the same name but each method must have different number/ combination of parameters. (eg might be multiple constructors in the same class)
15 of 21
Overriding
A method from a parent class with a given name can be done differently by inheriting classes using the same method name.
16 of 21
Data hiding
Done by restricting the scope of properties (instance variables).
17 of 21
Private
Means they can only be accessed from the code for the class itself
18 of 21
Protected
Means a property's scope is limited to the class itself and any inheriting classes
19 of 21
Accessor (Getter)
These are usually functions as they just return the value of an instance variable.
20 of 21
Mutator (Setter)
Alters the state of an instance variable and they tend to be procedures.
21 of 21

Other cards in this set

Card 2

Front

A property is coded by including an instance variable to represent that feature.

Back

Property

Card 3

Front

A method is a procedure of function that holds the code for some kind of common behaviour for the class members.

Back

Preview of the back of card 3

Card 4

Front

(included in every class) The basic purpose is to give instance variables an initial value. It is not included in the class.

Back

Preview of the back of card 4

Card 5

Front

A class which cannot be instantiated (you cannot make a new one of these). A convenient way of grouping common properties of similar classes.

Back

Preview of the back of card 5
View more cards

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all OOPS resources »