C # Complete Manual (02)

xiaoxiao2021-03-06  83

6.1.1 Basic forms of classes

The class member can be private or more accessibility.

If there is no explicit declaration of the type of visit to the type of member, then default, this class member is a private, a member with private access can only be used by other members of the class itself.

In Java, there is no clearly declared class member, all classes in the same package can access the member.

?

6.7.1 destructor

Call the destructor before recycling.

The basic form of the descent function is:

~ class-name () {

? // deStruction Code

}

?

7.2.1 Two-dimensional array

Declare a two-dimensional array table, the size of each dimension is 10 and 20 respectively:

? int [,] table = new int rt [10, 20];

Use a comma between different dimensions, ""

?

7.3 non-neutral group

The non-neutral array is an array of arrays, and the length of each array internally can be different.

Declare the basic form of the two-dimensional unmoding integer group:

TYPE [] Array-name = new type [size] [];

?

转载请注明原文地址:https://www.9cbs.com/read-122896.html

New Post(0)