using System;namespace CareerRideTest {private class Demo { public void show() { Console.WriteLine("Access Modifiers"); } }class MainClass {static void Main(string[] args) { Demo obj = new Demo(); obj.show(); Console.ReadKey(); } } }
Sushil Singh
Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal. In a namespace class can be declared as public or internal. By default class access specifier is internal.