Object-oriented programming concepts Flashcards Preview

Computing > Object-oriented programming concepts > Flashcards

Flashcards in Object-oriented programming concepts Deck (16):
1

What is object-oriented programming?

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

2

What are the advantages of Object-oriented programming?

-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

3

What is modular design?

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

4

What is encapsulation?

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

5

What is a method?

The object or routines contained within a class

6

What are properties?

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

7

In computing what does a class do?

Defines the properties and methods of a group of similar objects

8

What is an object?

a specific instance of a class

9

What is inheritance?

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

10

Define class diagrams

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

11

Define installation

The process of creating an object from a class

12

Define polymorphisim

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

13

Define overriding

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

14

What is aggregation?

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

15

What is composition aggregation?

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

16

What is association aggregation?

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