Inheritance vocabulary C++

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Subclass

Also known as the child or derived class. Class that inherits from another class.

Super class

Also known as the parent or base class. Class from which other classes inherit.

Overriding a function

If a child class has a function with the same function signature as one in the parent class, it will use the one defined within its own class.

Protected

Indicates that direct access to private data members is restricted to that class and any sub classes.

Has-a relationship

Refers to composition which is when a class ha a data member that is an object itself.

Is-a relationship

Refers to inheritance. If class A is derived from class B, we say A "is a" B.

Multiple inheritance

When a class directly inherits from multiple parent classes.

Single inheritance

When a class directly inherits from only one parent class.


Kaugnay na mga set ng pag-aaral

chapter 24 study questions (astronomy)

View Set

ACCT 2521 Ch 6 & 11 Bonus Point Quiz

View Set

World Geography - United States Unit 3 Exam

View Set

Business Statistics CH 5 Smartbook

View Set

Interpersonal communication - Final

View Set

Macroeconomics- C719 Western Governors University

View Set