Object Oriented Language Flashcards

1
Q

What is the terminology required?

A

Objects, classes, polymorphism, encapsulation and inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe an object

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe a class

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe inheritance

A

sub-classes can be derived from existing classes. The new classes will have all the existing properties of existing classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe encapsulation

A

sub-classes can be derived from existing classes. The new classes will have all the existing properties of existing classes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe polymorphism

A

Where sub-classes can respond differently to identical messages from the super class. The same syntax but different semantics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to instantiate an object

A

Dim objectName = New className(value1, value2, value3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to declare an array of objects

A

Dim arrayName(arrayLength) As className

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Arrays terminology

A

Inherits, overrides, the procedure call invokes the - method, no overriding method, method used to get the value (don’t access directly)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly