Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. What will be the output...
What will be the output of the C#.NET code snippet given below?
namespace McqsMentorConsoleApplication
{ 
    class Sample
    { 
        static Sample()
        { 
            Console.Write("Sample class ");
        }
        public static void Bits1()
        { 
            Console.Write("Bits1 method ");
        } 
    } 
    class MyProgram
    { 
        static void Main(string[ ] args)
        { 
            Sample.Bits1();
        } 
    } 
}

Sample class Bits1 method

Bits1 method

Sample class

Bits1 method Sample class

Answer: A . Sample class Bits1 method
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

0Shares
0
Scroll to Top