Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MyNamespace
- {
- class MyProgram
- {
- static void Main(string[] args)
- {
- }
- }
- }
- struct MyStruct
- {
- int a;
- }
- class MyClass
- {
- // Access Modifiers
- // public
- public int a;
- // private
- private int k;
- int x;
- void Func()
- {
- MyClass mc = new MyClass();
- mc.a = 2;
- mc.k = 21;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement