Sushil Singh
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(); } } }
By Sushil Singh in C# on Mar 09 2015
  • Sushil Singh
    Mar, 2015 9

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS