| Classes Objects Attributes Modifiers and keywords
As we all know classes are special kinds of templates where we can create objects. And Object contains data and methods to manipulate to data. Each class header includes Attributes Modifiers and class keyword.
Below are the some example of keyword and there descriptions
(1)Public
(2)private
(3)protected
(4)Internal
(5)Internal protected
Now the descritpion of above Keywords
(1)Public class is visible in the all current and referencing assembly means visible to all.
(2)private have limited access and Visible inside only in current class.
(3)protected also have limited access and Visible inside current and derived class.
(4)Internal only Visible inside the containing assembly.
(5)And the last one is Internal protected is Visible only inside containing assembly and descendant of the current class. | | |