摘要:reading notes of Pro VB 2008 and the .NET 3.5 Platform
Constructors
Shared
當一改 class name.shared variable, 全世界既object都會改.
class level not object level.
---
Property
用一個name 黎做曬set get...
---
read only
可以在 new 果時 assign value
Public Class MyMathClass
Public Shared ReadOnly PI As Double
Shared Sub New()
PI = 3.14
End Sub
End Class
---
const
只係complier 果陣 就定曬value.
---
partial public class
分拆巨 class
for developing only.
電腦會自動將所有partial合成一個巨class
‧ Encapsulation: How does this language hide an object’s internal
implementation details and
preserve data integrity?
‧ Inheritance: How does this language promote code reuse between related
classes?
‧ Polymorphism: How does this language let you treat related objects in
a similar way?
------------------
熱愛生命 喜愛新奇 有趣的事物
過去 是無法改變
將來 卻能夠創造
希望使大家生活更便利
世界更美好
a guy who loves IT and life