anonymous
  • anonymous
what does it mean to derive a class from a base class privately or publicly?
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Well, classes (as well as structures) have access levels. There are three: private, protected and public. They define how you can interact with class' members (reading/writing variables, invoking methods). Public access is the most permissive one and allows you just access members everywhere you want to. Protected and private are not permissive and they block access in some places. When you derive new class, you can decide whether change access levels of members acquired from the base class; if you derive publicly, you don't change anything, if you derive privately, you change all access levels to private.

Looking for something else?

Not the answer you are looking for? Search for more explanations.