C# Inheritance

Inheritance in C# is known as the concept which can be used to inherit properties like fields & methods, from one class to another class. Due to this inheritance classes are divided into 2 classes. Real World Example A scientific calculator is a type of calculator that has been extended. The parent object is the … Read more

Categories C#

C# Multithreading

Multithreading defines multiple threads which execute at the same time. As we know thread is known as the execution path for the program. Multithreading in C# is known as a process in which multiple threads work at the same time. Multithreading is used to achieve multi-tasking. Multi-Tasking saves time by executing multiple tasks at once. Multithreading … Read more

C# Array

Array in C# is used to store a fixed-size sequential collection of elements of the same data type, that is referred to by a common name. The length of the array specifies the number of elements in that array. And each data item in the array is known as the element of the array. Array … Read more

Categories C#

C# Enums

C# Enum is a strongly typed constant and keyword for the new data type Enumeration. An effective technique to define a set of named integral constants that may be assigned to a variable is to use a Typesafe enumeration. Enums make the code easier to read and less likely to have errors. When you have … Read more

Categories C#

C# Class

C# Class plays an important role. Through classes, we can associate everything with C#. A Class in C# is known as an object constructor. To solve problems in a better way we always divide the problem into objects. A class is similar to a blueprint for a particular object. Every object in the actual world … Read more

Categories C#

C# Syntax:

As we know C# is an object-oriented programming language. Like other OOP languages, the C# program also consists of objects to interact with other actions called Methods. Some objects having same kind are said to be in same class The basic C# program syntax is given below: Syntax: Keywords: Using Keyword: The first statement in … Read more

C# While Loop

In C# while loop, the loops keep repeating through a block of code until the specified condition is not True. The loop has the test condition at the beginning of the loop. All the given statements are executed till the given boolean condition satisfies when the condition becomes false, the control will be out from the while loop. … Read more

Categories C#

Major 6 C# Operators

C# Operators allow performing operations on variables and values (operands). Basically, Operators are the foundation of any programming language. Without them any programming language is incomplete. C# provides a number of operators. Operators knew as a symbol that defines what kind of operation needs to perform on operands. Following are the type of built-in C# … Read more

Categories C#

C# Data Types

C# Data Types are used to define a type of data that can behold by variable. Data Types such as integer, float, string, etc., are used in our application. Language which is strongly typed such as C# programming language, it’s mandatory to define a variable with the data type to indicate what type of data, variable … Read more

Categories C#

C# Variables

C# Variables are used to represent storage locations. In C# variables have a particular type which determines what type of values can be stored in that variable. As C# is strongly typed language so we have to define a variable with the required data type. It will specify the type of data that has to behold in … Read more

Categories C#