enSC18
Inheritance : A form of software reuse in which you create a class that absorbs an existing class’s data and behaviors, and adds new capabilities.
Base class : In inheritance, the existing class which is inherited from.
Derived class : In inheritance, the new class which inherits from the existing class.
Is a : Inheritance is represented by a(n) “__-_” relationship - an object or a derived class also can be treated as an object of its base class.
composition : Represented by a “has-a” relationship - an object contains one or more objects of other classes as members.
Public : Type of inheritance in which every object of a derived class is also an object of that derived class’s base class, but base-class objects are not objects of their derived classes.
Private : Base-class members that are declared with the _______ access specifier cannot be accessed by member functions of derived classes.
Hierarchical : Inheritance relationships form tree-like, ____________ structures.
Multiple : A derived class can inherit from more than one class. This is called ________ inheritance.
Protected : Base-class members with this access specifier may be accessed by members and friends of the base class and by members and friends of any derived classes.
Time and cost : Inheritance is a form of software reuse, which reduces development “____ and ____”
Virtual : Polymorphism is implemented through _______ functions.
polymorphism : Allows us to write programs that process objects of classes that are part of the same class hierarchy as if they were objects of the base class.
Override : In polymorphism it is possible to ________ a function, so that it has the same signature and return type in both the base class and derived classes, but has different functionality when called for different classes.
Abstract : You create a(n) ________ class by declaring one or more pure virtual functions with pure specifiers ( =0 ) in their declarations.
Concrete : Classes from which objects can be instantiated.
Downcasting : Casting a base-class pointer to a derived-class pointer.
Switch statement : Polymorphic programming can eliminate the need for a ______ _________ (Hint: A type of selection control structure)
RPHOYSOMPMLI
Allows us to write programs that process objects of classes that are part of the same class hierarchy as if they were objects of the base class.
RTECOENC
Classes from which objects can be instantiated.
WINSTNCDAOG
Casting a base-class pointer to a derived-class pointer.
IHLRIHCCAEAR
Inheritance relationships form tree-like, ____________ structures.
APTEVRI
Base-class members that are declared with the _______ access specifier cannot be accessed by member functions of derived classes.
ITTMTSNWCHASETE
Polymorphic programming can eliminate the need for a ______ _________ (Hint: A type of selection control structure)
ASRBACTT
You create a(n) ________ class by declaring one or more pure virtual functions with pure specifiers ( =0 ) in their declarations.
MPLTELIU
A derived class can inherit from more than one class. This is called ________ inheritance.
ESSBACASL
In inheritance, the existing class which is inherited from.
ALDISCDESVRE
In inheritance, the new class which inherits from the existing class.
ROEERIDV
In polymorphism it is possible to ________ a function, so that it has the same signature and return type in both the base class and derived classes, but has different functionality when called for different classes.
ISA
Inheritance is represented by a(n) “__-_” relationship - an object or a derived class also can be treated as an object of its base class.
CEEOTDRPT
Base-class members with this access specifier may be accessed by members and friends of the base class and by members and friends of any derived classes.
LIATVRU
Polymorphism is implemented through _______ functions.
REIHTCIANNE
A form of software reuse in which you create a class that absorbs an existing class’s data and behaviors, and adds new capabilities.
PMIIOCTNOOS
Represented by a “has-a” relationship - an object contains one or more objects of other classes as members.
MTIACESONDT
Inheritance is a form of software reuse, which reduces development “____ and ____”
UPBILC
Type of inheritance in which every object of a derived class is also an object of that derived class’s base class, but base-class objects are not objects of their derived classes.
Allows us to write programs that process objects of classes that are part of the same class hierarchy as if they were objects of the base class.
P
O
L
Y
M
O
R
P
H
I
S
M
RTECOENC
Classes from which objects can be instantiated.
C
O
N
C
R
E
T
E
WINSTNCDAOG
Casting a base-class pointer to a derived-class pointer.
D
O
W
N
C
A
S
T
I
N
G
IHLRIHCCAEAR
Inheritance relationships form tree-like, ____________ structures.
H
I
E
R
A
R
C
H
I
C
A
L
APTEVRI
Base-class members that are declared with the _______ access specifier cannot be accessed by member functions of derived classes.
P
R
I
V
A
T
E
ITTMTSNWCHASETE
Polymorphic programming can eliminate the need for a ______ _________ (Hint: A type of selection control structure)
S
W
I
T
C
H
S
T
A
T
E
M
E
N
T
ASRBACTT
You create a(n) ________ class by declaring one or more pure virtual functions with pure specifiers ( =0 ) in their declarations.
A
B
S
T
R
A
C
T
MPLTELIU
A derived class can inherit from more than one class. This is called ________ inheritance.
M
U
L
T
I
P
L
E
ESSBACASL
In inheritance, the existing class which is inherited from.
B
A
S
E
C
L
A
S
S
ALDISCDESVRE
In inheritance, the new class which inherits from the existing class.
D
E
R
I
V
E
D
C
L
A
S
S
ROEERIDV
In polymorphism it is possible to ________ a function, so that it has the same signature and return type in both the base class and derived classes, but has different functionality when called for different classes.
O
V
E
R
R
I
D
E
ISA
Inheritance is represented by a(n) “__-_” relationship - an object or a derived class also can be treated as an object of its base class.
I
S
A
CEEOTDRPT
Base-class members with this access specifier may be accessed by members and friends of the base class and by members and friends of any derived classes.
P
R
O
T
E
C
T
E
D
LIATVRU
Polymorphism is implemented through _______ functions.
V
I
R
T
U
A
L
REIHTCIANNE
A form of software reuse in which you create a class that absorbs an existing class’s data and behaviors, and adds new capabilities.
I
N
H
E
R
I
T
A
N
C
E
PMIIOCTNOOS
Represented by a “has-a” relationship - an object contains one or more objects of other classes as members.
C
O
M
P
O
S
I
T
I
O
N
MTIACESONDT
Inheritance is a form of software reuse, which reduces development “____ and ____”
T
I
M
E
A
N
D
C
O
S
T
UPBILC
Type of inheritance in which every object of a derived class is also an object of that derived class’s base class, but base-class objects are not objects of their derived classes.