What is public, protected, private?

What is public, protected, private?

Public variables - that are visible to all classes.
Private variables - that are visible only to the class to which they belong.
Protected variables - that are visible only to the class to which they belong, and any subclasses.

By:Umang
Date:2001-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher