시작하기. 무료입니다
또는 회원 가입 e메일 주소
OOP i C# 저자: Mind Map: OOP i C#

1. Methods

1.1. [Accessor] DataType FunctionName([parameters]) { return value }

1.1.1. Uten returverdi void

1.2. override

1.2.1. a new implementation of a member that is inherited from a base class

1.2.2. polymorphism,

2. Shared class members

2.1. Static memebers

2.2. A class instance is not required,

2.3. [Accessor] static returntype Name()

3. Inheritance

3.1. partial class NewClass:DerivedClass

3.2. virtual method

3.2.1. inheriting classes can override the method and provide their own implementation.

4. Member Access

4.1. protected member

4.1.1. is accessible within its class and by derived classes

5. Scope and lifetime

5.1. Variabler lever innen den kode blokken den er definert

6. Generics

6.1. let you tailor a method, class, structure, or interface to the precise data type it acts upon

6.2. List<Custom Class> name

7. Klasser

7.1. [Accessor] class ClassName { // class contents }

7.2. Public

7.2.1. No access restrictions

7.3. Private

7.3.1. The class is only accessible from within its declaration context.

7.4. Protected

7.4.1. The class is only accessible from within its own class or derived classes.

7.5. Internal

7.5.1. The class is only accessible from within the assembly that contains it.

7.6. Protected internal

7.6.1. The class is only accessible from within its own class, a derived class, or its containing assembly.

8. constructor

8.1. special method that runs when the class is instantiated

8.2. Har samme navn som klassen

8.3. Overloading

8.3.1. Har flere constructors

8.3.2. Ulik signatur

8.3.2.1. Ulikt antall parametre

9. Properties

9.1. control the characteristics of a class,

9.2. expose to users of the class some internal values

9.3. public int ProductID { get{ return _ProductID; } set{ _productID = value; } }

9.3.1. int pid = item.ProductID;

9.3.2. item.ProductID = 123;

9.4. abstraction.

9.4.1. Skjule intern funksjonalitet

9.5. Syntaks

9.5.1. Property Item

9.5.2. intern variabel _item