Lecture 7 - Introduction to OOP Flashcards

1
Q

logical blueprint of an object

A

class

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

created based on an accepted
blueprint

A

object

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

objects can be created from a
class

A

object-oriented programming

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

any valid C++ identifier. By convention, the name starts with a capital letter, and a camel back (camel case) notation is observed if compound names are used.

A

Class Name

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

data/function is only accessible inside the class.

A

private

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

defines the visibility of the data and functions

A

Access specifier

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

data/function is accessible outside the class.

A

public

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

variables which represent the attributes of the class

A

Data_members

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

specify the class name (ClassName) followed by the object name (objectName).

A

create an object of a class

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

used for dynamic memory allocation. size is flexible and can be used to allocate space during runtime.

A

Heap Memory

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

data/function is accessible inside the class and any of its subclasses

A

protected

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

functions which represent the behaviors of the class

A

Member_functions

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

class member used to instantiate an object. initializes the data members to their default values.

A

constructor

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

use the dot operator/syntax “.” on the object (objectName).

A

access the class attributes (classMember)

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

any physical device capable of storing information

A

Computer memory

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

class member used to deallocate memory when the object is already out of scope.

A

destructor

11
Q

used for static memory allocation and access to this memory area is very fast.

A

Stack Memory

12
Q

portion of primary memory (RAM) where function calls
including local variables, are stored.

A

Stack