C Program to Find Transpose of a Matrix

In this tutorial, we will write a program on how to calculate the transpose of a matrix in C program. Let us first understand the transpose of a matrix. Transpose of a matrix in C: The new matrix obtained by exchanging the rows and columns of the original matrix is called a transpose matrix. It … Read more

C++ Encapsulation

Encapsulation is defined as the wrapping up of data(variable) under a single unit. Encapsulation is an important concept of OOP in C++ that binds data and functions inside a class together that manipulate them. Data encapsulation leads to the important concept called data hiding. It makes sure that the ‘sensitive’ data are hidden from the … Read more

C++ Interface (Abstract classes)

The interface is implemented using an abstract class in C++, hence the word interface and abstract class are used interchangeably. Abstraction classes are the way to achieve abstraction and abstraction is a technique in programming to hide the internal details and only show the necessary functionalities. The classes with at least one pure virtual function … Read more

C Program to Find Inverse of a Matrix

In this tutorial, you will learn to write a program to find the inverse of a matrix in C. Let us first start by understanding how to find the inverse of a matrix and the requirements to find it. In order to find the inverse of a matrix, Adjoint of a matrix The adjoint of … Read more

C++ Data Abstraction

Data abstraction is the process of hiding the details but only displaying the relevant information to the users. This is one of the main advantages of using abstraction. It is a programming way or a technique through which we can separate the interface with the implementation details. Take a real-life example:Suppose a person is typing … Read more

C++ Virtual Function

Virtual function in C++ is a member function in the base class that we redefined in a derived class. With the use of a virtual function, we ensure that the function is overridden. A virtual function lets the compiler know to perform dynamic linkage or late binding on the function (that is the called function … Read more

C++ Function Overriding

Function overriding allows us to define a function at a derived class that is already present in a base class. And that base is said to be overridden. Both derived and base class has the member function with the same name, same return type, and same arguments list. And the decision made to call the … Read more