chpt 11 notes :Inheritance and Composition in Object-Oriented Programming

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts of inheritance and composition in object-oriented programming based on the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Inheritance

An 'is-a' relationship allowing new classes to be created from existing classes.

2
New cards

Derived Class

A new class created from an existing class, inheriting properties from the base class.

3
New cards

Base Class

The original class from which derived classes are created.

4
New cards

Single Inheritance

A derived class that has a single base class.

5
New cards

Multiple Inheritance

A derived class that has more than one base class.

6
New cards

Public Inheritance

All public members of the base class are inherited as public members by the derived class.

7
New cards

Composition

A 'has-a' relationship where one or more member(s) of a class are objects of another class type.

8
New cards

Encapsulation

Combines data and operations on data in a single unit.

9
New cards

Polymorphism

The ability to use the same expression to denote different operations.

10
New cards

Virtual Functions

Functions in C++ that allow run-time selection of appropriate member functions.

11
New cards

Destructors

Methods that deallocate dynamic memory allocated by objects of a class.

12
New cards

Constructor

A special method used to initialize objects when they are created.

13
New cards

Scope Resolution Operator (::)

Used to specify which class's member function is being referred to when overriding.

14
New cards

Access Specifiers

Modifiers that determine how members of a class can be accessed (public, protected, private).

15
New cards

UML Class Diagram

A standardized way to visualize the design of a system, showing classes and their relationships.

16
New cards

Member Initialization List

A list used in constructors to initialize member variables before the constructor body executes.

17
New cards

I/O Stream Classes

Classes such as istream and ostream used for handling input and output operations.