Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What language-level difference applies to otherwise identical class and struct definitions?" on CodeWiki (https://codewiki.com/practice/mcq/cpp/classes/class-struct-default-access/).
Context (verbatim from the page):
"""
What language-level difference applies to otherwise identical class and struct definitions?
Members and bases default to private for class and public for struct.
Only class can declare constructors and member functions.
Only struct objects can be copied memberwise.
A struct cannot inherit from another type.
"""
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.