Control Statements in VB .Net

Decision Statements in VB .Net Definition A decision statement in VB .NET is used to control the flow of execution of a program statement by allowing different blocks of code to execute based on conditions or logical expressions. Need for Decision Statements Decision statements are required to: Make programs dynamic Read more…

Loading

Array & Collection

Array Introduction An array in VB .NET is a simple and static data structure. Definition In VB .NET, an Array in VB .NET is a collection of elements of the same data type stored in contiguous memory locations and accessed using a single variable name with an index. However, if an array Read more…

Loading

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 & Error Handling

Exception Handling in VB .Net 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 Read more…

Loading