Questions tagged [grandchild]

Grandchild is a child's child.

46 questions
-1
votes
2 answers

C++ getting values from parent and grandparent that were initialized in main

I am a C++ beginner and I have the following problem. I have three classes: a grandparent, a parent and a child. The idea is like this #include #include #include class Book { protected: long int number; …
Martine
  • 11
  • 6
1 2 3
4