Difference between public/protected in abstract class?

  • Thread starter Thread starter Guest
  • Start date Start date
gcrasher,

No, not at all, the visibility rules still apply.

What is the scenario that you see which gives you this idea?
 
gcrasher said:
Seems like they would mean the same thing. Am I right?

No. Protected methods can only be called within the inheritance
hierarchy. Public methods can be called from anywhere.
 

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