1.  The C# access modifiers are -

o   Private Access Modifier - A private attribute or method is one that can only be accessed from within the class. (কোনো মেথডে যদি প্রাইভেট use করা হয় তবে সেটা ঐ ক্লাসের ভিতরেই access পাবে)

o   Public Access Modifier - When an attribute or method is declared public, it can be accessed from anywhere in the code.

o   Internal Access Modifier - When a property or method is defined as internal, it can only be accessible from the current assembly point of that class. (কোনো প্রপার্টি বা মেথডে যদি internal use করা হয় তবে সেটা ঐ ক্লাসের ভিতরেই access পাবে অন্য প্রজেক্ট বা এসেম্বেলিতে এক্সেস পাবে না)

o   Protected Access Modifier - When a user declares a method or attribute as protected, it can only be accessed by members of that class and those who inherit it. (কোনো মেথডে যদি প্রাইভেট use করা হয় তবে সেটা ঐ ক্লাসের ভিতরেই access পাবে + যদি inherited হয় তবে এক্সেস পাবে)

(Here ‘Same Assembly’ means same project, ‘different assembly’ means different project. Same class maybe base class (parent class), devived class is child class)

  1. The following are the Advantages of C#: • C# is component-oriented. • It is an object-oriented language. • The syntax is really easy to grasp. • It is easier to learn. • C# is part of the framework called .NET.