1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| Public Class Produit
Private _libelle As String
Private _prix As Decimal
Public ReadOnly Property Libelle() As String
Get
Return _libelle
End Get
End Property
Public ReadOnly Property Prix() As Decimal
Get
Return _prix
End Get
End Property
Public ReadOnly Property Affichage() As String
Get
Return _libelle + " ----> " + _prix
End Get
End Property
Public Sub New(ByVal libelle As String, ByVal prix As Decimal)
_libelle = libelle
_prix = prix
End Sub
End Class |