Category Archives

Why is the size of an empty class not zero in C++?

When structure is introduced in C, that time there is no concept of Object. So According to C standard...

Why is the size of an empty class not zero in C++?

When structure is introduced in C, that time there is no concept of Object. So According to C standard...

Can a C++ class have an object of self type?

A class declaration can contain static object of self type, it can also have pointer to self type, but...

Can a C++ class have an object of self type?

A class declaration can contain static object of self type, it can also have pointer to self type, but...

Structure vs class in C++

In C++, a structure is the same as a class except for a few differences. The most important of...

Structure vs class in C++

In C++, a structure is the same as a class except for a few differences. The most important of...

Abstraction in C++

Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means...

Abstraction in C++

Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means...

Encapsulation in C++

In normal terms Encapsulation is defined as wrapping up of data and information under a single unit. In Object...

Encapsulation in C++

In normal terms Encapsulation is defined as wrapping up of data and information under a single unit. In Object...

Polymorphism in C++

The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a...

Polymorphism in C++

The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a...

Inheritance in C++

The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one...

Inheritance in C++

The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one...

Access Modifiers in C++

Access modifiers are used to implement an important aspect of Object-Oriented Programming known as Data Hiding. Consider a real-life...

Access Modifiers in C++

Access modifiers are used to implement an important aspect of Object-Oriented Programming known as Data Hiding. Consider a real-life...

C++ Classes and Objects

Class: A class in C++ is the building block, that leads to Object-Oriented programming. It is a user-defined data...

C++ Classes and Objects

Class: A class in C++ is the building block, that leads to Object-Oriented programming. It is a user-defined data...

OOPs | Object Oriented Design

Object oriented design started right from the moment computers were invented. Programming was there, and programming approaches came into...

OOPs | Object Oriented Design

Object oriented design started right from the moment computers were invented. Programming was there, and programming approaches came into...