31-10-14, 12:22 AM
PHP كود :
Public Class Form1
End Class
Class AnyThing
Public Shared Thing_Type As String
Public P As New Person
Public C As New Car
Class Person
Public Sub Show_Thing_Type()
If Thing_Type = "Person" Then MsgBox("Person")
If Thing_Type = "Car" Then MsgBox("Car")
End Sub
End Class
Class Car
Public Sub Show_Thing_Type()
If Thing_Type = "Person" Then MsgBox("Person")
If Thing_Type = "Car" Then MsgBox("Car")
End Sub
End Class
End Class
بالسي شارب نستخدم Static

