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# 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# 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# 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# 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#

JavaScript DOM_Edit

JavaScript can access and change all the elements of an HTML document with the JavaScript DOM. The browser creates a DOM of the page when a web page is loaded. The HTML DOM is developed as a tree of objects: JavaScript takes all the power it needs to create dynamic HTML. JavaScript can change all … Read more

C# For Loop

C# For Loop has similar functionality as while loop but with different syntax. For loops are preferred when the number of times loop statements are to be executed is known beforehand. The loop variable initialization, condition to be tested, and increment/decrement of the loop variable are done in one line in for loop thereby providing … Read more

Categories C#

C# do-while loop

The C# do-while loop is similar to the while loop. But there is one difference that the do-while loop checks the condition after executing the statements. Syntax: Graphical representation: C# do-while loop The control returns to the beginning of the loop if the condition is true. The control exits the loop when the condition is … Read more

Categories C#

C# Methods

C# Methods are the group of statements that perform a task altogether. Storing a set of statements in a single module eliminates the need to rewrite the same code or makes a specific operation more frequently used. The method in C# is a discrete code block that contains many statements that perform specialised tasks. To … Read more

Categories C#