📄 privateconstructor.cs
字号:
using System;
class clsBook
{
private clsBook()
{
}
public static void ShowBook()
{
System.Console.WriteLine(Title);
System.Console.WriteLine(Author);
System.Console.WriteLine(Topic);
}
public static string Title = "Jamsa's C/C++/C# Programmer's Bible";
public static string Author = "Jamsa";
public static string Topic = "C, C++, and C# programming";
};
class clsCreateClassInstance
{
static void Main()
{
clsBook.ShowBook();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -