abstract class and private member.

  • Thread starter Thread starter ManTis
  • Start date Start date
M

ManTis

Well, the member can still be used by protected/public functions of the
class, called from derived class objects, so yeah, it is usable.
 
Well, the member can still be used by protected/public functions of the
class, called from derived class objects, so yeah, it is usable.

Except (OP) "having only one abstract method", so no such methods (with
bodies); and since it is private (not protected) it is invisible to
derived objects.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top