• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/4

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

4 Cards in this Set

  • Front
  • Back

Explain friend function part 1

Private member's of a class cannot be accessed from outside the class. Occasionally, it is convenient to allow some trusted friend functions to access a class's private member's.

Explain friend function part 2

C++ enables you to use the friend keyword to define friend functions so that these trusted functions can access another class's private member's

Explain Inheritance part 1

Object-orientated programming allows you to derive new classes from existing ones. This is called inheritance. It is an important and powerful feature in C++ for reusing software.



Explain Inheritance part 2


Suppose you are to define classes to model circles, rectangles, and triangles. These classes have many common features. What is the best way to design them to avoid redundancy? The answer is inheritance.