Object-oriented programming concepts Flashcards

1
Q

What is object-oriented programming?

A

Object-oriented programming can be described as being organised in a way that reflects the real world

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

What are the advantages of Object-oriented programming?

A
  • programs are written in modules, which means that they can be easily amended
    • It is also easier to add new functionality to a program by adding new modules
    • Allows teams to work on self-contained parts of a large program
    • Objects can inherit attributes and behavior
    • Reduces the chance that changing code will cause loads of bugs
    • Code can be reused easily
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is modular design?

A

A method of system design that breaks a whole system down into smaller units

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

What is encapsulation?

A

The concept of putting properties, methods and data in one object

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

What is a method?

A

The object or routines contained within a class

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

What are properties?

A

The defining features of an object or class in terms of it’s data

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

In computing what does a class do?

A

Defines the properties and methods of a group of similar objects

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

What is an object?

A

a specific instance of a class

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

What is inheritance?

A

The concept that properties and methods in one class can be shared with a subclass

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

Define class diagrams

A

A standard method of representing classes, their properties and methods and relationships between classes. There are different ways of representing the relationships between the classes

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

Define installation

A

The process of creating an object from a class

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

Define polymorphisim

A

The ability of different types of data to be manipulated with the same method

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

Define overriding

A

Where a method described in the subclass takes precedence over a method with the same name in the base class

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

What is aggregation?

A

A method of creating objects that contain existing objects, based on the way the objects are related

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

What is composition aggregation?

A

A method of creating objects that contain existing objects, and will cease to exist if the containing object is destroyed

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

What is association aggregation?

A

A method of creating objects that contain existing objects, and will continue to exist if the containing object is destroyed