Page 99 - Programming VB.NET
P. 99

Code With VB.Net                              95



                   Public Class Form1

                       Private Sub btninherit_Click(ByVal sender
                   As System.Object, ByVal e As
                   System.EventArgs) Handles Button1.Click

                           Dim obj As New Second

                           obj.X = 100

                           obj.Y = 50
                           obj.Z = 80

                           lblsum.Text = obj.getSum()

                       End Sub

                   End Class
   94   95   96   97   98   99   100   101   102   103   104