Tag: C++ programming language
-
C++Virtual Functions in C++
A virtual function is a member function declared in a base class that is re-defined (overridden) by a derived class….
October 26, 2022
-
C++Pure Virtual Functions and Abstract Classes
What are Pure Virtual Functions? A pure virtual function is a virtual function in C++ that does not require any…
October 27, 2022
-
C++Virtual Destructors in C++
What is a Virtual Destructor? Deleting a derived class object with a non-virtual destructor using a pointer of the base…
October 28, 2022
-
C++Operator Overloading in C++
What is Operator Overloading? Operator overloading is a compile-time polymorphism in which the operator is overloaded to provide the user-defined…
October 29, 2022
-
C++Examples of Operator Overloading in C++
Let’s see examples of operator overloading in C++ for various types of operators. Examples: 1) Add given timestamps by overloading…
October 30, 2022
-
C++Exception Handling in C++
What is an Exception? An exception is a problem that arises during the execution of a program. A C++ exception…
October 31, 2022
-
C++File Handling using File Streams in C++
A file is a medium for storing data or information. The sequence of bytes provided as input to the executing…
November 1, 2022
-
C++Memory Management in C++
What is Memory Management? Memory management is defined as the process of managing a computer’s memory, such as assigning memory…
November 2, 2022
-
C++Multithreading in C++
What is Multithreading? Multithreading is a subset of multitasking, which is the feature that allows your computer to run two…
November 3, 2022
-
C++Namespaces in C++
What are Namespaces in C++? Namespaces are logically separated sections of a program. They are required if you want multiple…
November 4, 2022
-
C++Hello World program
Program code: Output: #include<iostream>: A number sign (#) at the start of a line instructs the compiler’s pre-processor. The <iostream>…
November 5, 2022
-
C++Adding two numbers
Program code: Output: where, int sum=0: A variable can be initialized during the declaration process. This is usually done to…
November 5, 2022