Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does public inheritance guarantee about accessible base members?" on CodeWiki (https://codewiki.com/practice/mcq/cpp/inheritance/public-base-access/).
Context (verbatim from the page):
"""
What does public inheritance guarantee about accessible base members?
Public members stay public, protected members stay protected, and private members remain inaccessible to derived members.
Every base member becomes public in the derived class.
Protected members become private, while private members become protected.
Access changes only at runtime after an upcast.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in C++. Where you are unsure, say so.