Operator Overloading Examples

Example : Operator Overloading Examples in VB .Net program to show Binary Addition(+) Operator Overloading. Class Example Dim num1 As IntegerDim num2 As Integer Sub Input(ByVal val1 As Integer, ByVal val2 As Integer)     num1 = val1     num2 = val2End Sub Public Shared Operator +(ByVal Obj4 As Example, ByVal Read more…

Loading

Procedure/Function in VB .Net

Definition of Procedure In VB.NET, a Procedure is a block of reusable code that performs a specific task. Exit Statements in Procedure The term Exit Sub or Exit Function is used to terminate the execution of program prematurely/forcibly. Types of Procedure Procedures can be of two types: Subroutine Procedures:  Function Read more…

Loading

Polymorphism Examples

Example :  Polymorphism examples in VB .NET program in Subroutine to use Function/Method Overriding using Polymorphism in Console Application. Example : Polymorphism examples in VB .NET program in to display Abstract Class & Method using Polymorphism in Console Application.

Loading

Namespaces

Definition of Namespace In VB.NET, a namespace is a container that holds or is the vast collection of a set of related objects, such as classes, interfaces, structures, enumerations, and other namespaces. Features of Namespace Each namespace contains various classes, interfaces, and structures with specific functionalities, providing a rich set Read more…

Loading

Exception Handling

Introduction of Exception Handling in VB .net Exception: An Exception, in OOP programming, is a hidden, unwanted, abnormal unexpected, or exceptional event that occurs during the execution of a program and interrupts the normal flow of the program. When a program encounters an exception, it stops executing the current code block Read more…

Loading

Class and Object Examples

Example : A Class and Object Examples in VB .NET program using Subroutine in Console Application. Example : A VB .Net program to demonstrate Private Methods using a Console application. Example : A VB .Net program to demonstrate Shared Variables using a Console application. Example: A VB .NET program to Read more…

Loading