General Flashcards

1
Q

What is polymorphism?

A

Polymorphism describes a pattern in object oriented programming in which classes have different functionality while sharing a common interface.

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

What is encapsulation?

A

A language mechanism for restricting access to some of the object’s components.

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

What are storage classes?

A

A storage class defines the scope (visibility) and life-time of variables and/or functions within a C++ Program. These specifiers precede the type that they modify.

    auto
    register
    static
    extern
    mutable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the register storage class?

A

The register storage class is used to define local variables that should be stored in a register instead of RAM.

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

What is the static storage class?

A

The static storage class instructs the compiler to keep a local variable in existence during the life-time of the program instead of creating and destroying it each time it comes into and goes out of scope.

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

What is the extern storage class?

A

The extern storage class is used to give a reference of a global variable that is visible to ALL the program files.

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

What is inheritance?

A

Inheritance enables new objects to take on the properties of existing objects.

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