Created
August 17, 2020 15:12
-
-
Save nanwang2016/6e75773e31d79057f2cc38f1b6858f70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace TestFile | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
} | |
} | |
class Vehicle | |
{ | |
//Static Constructor | |
static Vehicle() | |
{ | |
Console.WriteLine("Static Constructor is called!"); | |
} | |
//Instance Consturctor | |
public Vehicle() | |
{ | |
Console.WriteLine("Instance Constructor is called!") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment