C++

C++ Inheritance

In this C++ tutorial, let us have a look at inheritance, types of inheritance and sample C++ Inheritance program for better understanding the concepts. Introduction of  C++ Inheritance  It is one of the pillars of OOPs. It allows one class to inherit the features and behaviours of another class. The class which inherits the features …

C++ Inheritance Read More »

C++ Files and Streams

In this C++ tutorial, let’s discuss the C++ Files and Streams, different modes of opening a file and the sample program for better understanding the concept. Introduction of Files and Streams in C++ To save the data for later use, the data must be stored on secondary storage. So, to save the data, files must …

C++ Files and Streams Read More »

C++ Exception Handling

In this C++ tutorial, let us see the Exception Handling in C++, types of exceptions and sample programs to understand the concepts better. Exception signifies something wrong. Any error in the program that is encountered while the code is executing is known as an exception. Suppose, the code accepts two numbers from the user, i.e. …

C++ Exception Handling Read More »

C++ Encapsulation

In this C++ tutorial, let us have a look at C++ Encapsulation, its syntax and sample C++ program for a better understanding of this concept. Introduction to Encapsulation in C++ In general, Encapsulation is the pillar of Object-Oriented Programming that focuses on the security/safety of data by hiding it to secure from unauthorized access. Data …

C++ Encapsulation Read More »

C++ Dynamic Memory

In this C++ tutorial, let us know about C++ Dynamic Memory, Operators for allocation and Sample program in C++. Introduction to Dynamic Memory in C++ Dynamic Memory in the C++ program can be split into two sections, Stack Heap In Stack, all variables are declared inside the function will take up a memory from the stack. …

C++ Dynamic Memory Read More »

Difference between Abstraction and Encapsulation in C++

Abstraction & Encapsulation are two essential concepts of Object-Oriented Programming Language. In this post, we will have a glance at difference between Abstraction and Encapsulation in C++ programming language with tables. Difference between Abstraction and Encapsulation in C++ S.NO ABSTRACTION ENCAPSULATION 1. In the abstraction, problems are resolved at the level of design or interface. While …

Difference between Abstraction and Encapsulation in C++ Read More »

C++ Classes & Objects

Classes It is a user-defined data type and represents the blueprint from which objects are created. Further, it represents the set of properties or methods that are common to all objects of one type. A class never has any physical existence. It is a logical thing. Syntax class ClassName{ }; Let us take a real-time …

C++ Classes & Objects Read More »

C++ Abstraction

Data abstraction is the property by which only the essential details are displayed to the user. The trivial or non-essential units are not displayed to the user. It reduces the complexity of viewing things. It may be defined as the process of identifying only the required characteristics of an object hiding unnecessary or irrelevant details. …

C++ Abstraction Read More »