Home > Net >  Just learning c # small white, can you tell me the Chinese interpretation right? Whether that is to
Just learning c # small white, can you tell me the Chinese interpretation right? Whether that is to

Time:05-22

Using System;
using System.Collections.Generic;
Using System. Linq;
using System.Text;
Using System. The Threading. The Tasks;
Using the static System. The Console;


The namespace definition class
{
Class Program//define the class
{
Public abstract class MyBase {}//public abstract class
Internal class MyClass: MyBase {}//inner class inheritance public abstract class
Public interface IMyBaseInterface {}//public interface
Internal interface IMyBaseinterface2 {}//declare the internal interface
Internal interface IMyInterface: IMyBaseInterface, IMyBaseinterface2 {}//internal interface inheritance public interface and internal interface
Internal sealed class MyComplexClass: MyClass, IMyBaseInterface {}//internal seal class inherits and internal class public interface
Class program
{
The static void Main (string [] args)
{
MyComplexClass myObj=new MyComplexClass (); Internal seal//instantiate an object of a class
WriteLine (myObj. ToString ());//output object of the expression of the string
ReadKey ();
}
}

}
}

CodePudding user response:

Yes, but the Main method of body no more reflect the nature of these classes

CodePudding user response:

Complex Complex; To understand; To understand; Associated with a set of things; Abnormal state of mind;

CodePudding user response:

Abnormal state of mind! Ha ha,,,,,,,,,,,,,,,,, the summary is in place
  •  Tags:  
  • C#
  • Related