M2 Object-Oriented Programming Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Flashcards covering fundamental concepts of object-oriented programming based on lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Procedural Approach

Breaking down a program by what it does, using actions/verbs.

2
New cards

Object-Oriented Approach

Breaking down a program into entities (classes/objects), described with nouns.

3
New cards

Variable

A value that can change during the execution of a program.

4
New cards

Constant

A value that remains constant during the execution of a program.

5
New cards

Expression

A combination of operands (variables & constants) and operators.

6
New cards

Types of Expressions

Arithmetic, Conditional, and Logical.

7
New cards

Operator

A symbol that performs an action on the operand.

8
New cards

Types of Operators

Unary, Binary, and Ternary.

9
New cards

Class

A new type of variable that specifies what descriptive data is needed and what are the possible set of actions.

10
New cards

Attributes

Data associated with a class.

11
New cards

Methods

Actions associated with a class.

12
New cards

Instantiation

Creating a new instance or example of a class.

13
New cards

Instance Fields

Fields maintained separately for each object.

14
New cards

Static Fields

Fields that are common to all instances of an object.

15
New cards

Static Method

A method that can be executed without using an object.

16
New cards

Constructor

A special method which is called when objects are instantiated (created).

17
New cards

Default Constructor

Takes no parameters.

18
New cards

Parameterized Constructor

Takes one or more parameters depending on signature matching.

19
New cards

Destructor (Finalize Method)

A special method that gets called automatically as soon as the life-cycle of an object is finished, de-allocating and freeing memory.

20
New cards

this

Keyword used by an object to refer to itself.