C# Constructor

In C#, a constructor is the member of the class and is automatically invoked once the object of the class is created. It is like a method in a program and is used for the initialization of the data members …

Read moreC# Constructor

C# Object and Class

C# is an object-oriented programming language and classes and objects are the fundamental components of OOP’s. Everything in C# is built upon classes and objects. Let us learn classes and objects with an example. C# Class A class is a user-defined …

Read moreC# Object and Class

C++ Strings

A string is a sequence of characters that is an object of std::string class in C++. Memory to a string is allocated dynamically that is we can assign memory during runtime as required. Various operations are performed on a string such as …

Read moreC++ Strings

C++ Preprocessor

As you have studied in C preprocessor before, C++ preprocessor also has the same exact concept of it with a change in coding. As the “pre” means beforehand, similarly it means processing something before passing it on further. The preprocessor …

Read moreC++ Preprocessor

C++ Namespaces

Suppose there is a function called abc() in your code and you are also using some library that has the function with the same name as abc(). Now while executing these functions, the compiler will not know which one to …

Read moreC++ Namespaces

C++ Enumeration

An enumeration is a user-defined type that consists of a set of named integral constants. These constants are fixed constant. The keyword enum is used to define these data types. Syntax of enums enum enum_name{const1, const2, ……. }; enum_name: Name …

Read moreC++ Enumeration