Discussion :: Classes and Objects - General Questions (Q.No.8)
|Venkat said: (Jan 21, 2016)|
|Not private, internal by default.|
|Fation said: (Feb 24, 2016)|
Only class access modifier it is internal by default. Data members and methods of class (object) it is private and the answer it is correct. Maybe you confused when this class it be base class.
Even when other class inherit from this base class the default access modifier are private. We should change to internal or public or protected access modifier of base class to be inherited from derived class.
|Sridhar said: (Jun 28, 2018)|
|Why? 1St one is also correct public declared anywhere there is no restriction.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.