write a console application to divide two number & provide error handling technique


Module Module1

    Sub Main()
        Dim a, b, c As Integer
        a = 0
        b = 100
        Try
            c = b / a
        Catch ex As Exception
            Console.WriteLine(ex.ToString())
            Console.WriteLine("divide by zero exception error")
 End Try
    End Sub

End Module

Read more...

write a console application to derive and use an employee from the person class


Module Module1

    Sub Main()

        Dim objt As empl

        objt = New empl()
        objt.empl_method()

    End Sub

End Module
Public Class person
    Public Sub person_method()
        Console.WriteLine("hey!!!its example")
 End Sub
End Class
Public Class empl
    Inherits person
    Public Sub empl_method()
        Console.WriteLine("inherits sucessfully one class to derived class")

    End Sub
End Class

Read more...
Related Posts Plugin for WordPress, Blogger...

Engineering material

GTU IDP/ UDP PROJECT

GTU IDP/ UDP PROJECT

Patel free software download

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP