Object Oriented Languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Class Definition

A
Describes the kind of data required to be used - The instance variables
Describes what the class will be able to do - It's methods
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Methods

A

Describes what the class will be able to do

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

Instance Variables

A

The kind of data to be used by the class

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

Class

A

Template for an object

Once defined any number of objects can be created from it

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

Instantiation

A

Creating a new object from a class

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

Polymorphism

A

The ability of a method inside a sub class to be redefined and override a super class method

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

Inheritance

A

When the sub class inherits all of the methods and attributes from the parent class

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

Encapsulation

A
The ability to restrict access to attributes, operations and classes
A class attribute might only be available to that class and so out with this class the attribute can only be used through use of that classes methods
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The difference between a class and an object

A

Class is a template which defines the methods and attributes

An object is an instance of a class

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