Vous êtes sur la page 1sur 1

Public Class cliente REM declarar atributos Public nombre As String REM metodo Sub mostrar() MessageBox.

Show(nombre, "clase cliente", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Sub End Class Class ClienteMoroso Inherits cliente Public deuda As Decimal Sub mostrardeuda() MessageBox.Show(deuda, "clase cliente", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) MessageBox.Show(nombre, "clase cliente", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Sub End Class Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cli As New cliente() Dim clim As New ClienteMoroso() cli.nombre = "yamil" clim.nombre = InputBox("digite nombre cliente moroso") clim.deuda = 20000 cli.mostrar() clim.mostrar() clim.mostrardeuda() End Sub End Class