This C# code contains two classes, A and B, that each have a Main method. The Main method in class A writes "This is class A" to the console, while the Main method in class B writes "This is class B" to the console.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
80 views1 page
Two Main
This C# code contains two classes, A and B, that each have a Main method. The Main method in class A writes "This is class A" to the console, while the Main method in class B writes "This is class B" to the console.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
using System;
class A { public static void Main() { Console.WriteLine("This is class A"); } } class B { public static void Main() { Console.WriteLine("This is class B"); } }