Đang chuẩn bị liên kết để tải về tài liệu:
CLASS, STRUCT, INTERFACE - ThS. Nguyễn Hà Giang
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Called when create object • Same class name • Class has default constructor which no parameter • Class has multiple constructor (overloading constructor) Default constructor • No parameter • Create object when has no any information • Copy constructor • Input parameter is another object • Create new object like input object • Other constructors • One or more parameter • Create new object with some information | Content 1. Class definition 2. Constructor destructor 3. Property 4. Indexer 5. Polymorphism 6. Downcast -Upcast 7. Abstract class - Sealed class 8. Struct 9. Interface Nguyen Ha Giang - 2009 2 Class declaration internal Access modifier protected internal protected private default access modifier class class_name base class interfaces. class body public Base class Interface only one class or not implement some interfaces Nguyen Ha Giang - 2009