Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C++ School Programming cpp-class

Basic Concepts of Object Oriented Programming using C++

Object oriented programming – As the name suggests uses objects in programming. Object oriented programming aims to implement real world entities like inherit...
Articles GBlog Misc

OOPs Object Oriented Design

Object oriented design started right from the moment computers were invented. Programming was there, and programming approaches came into the picture. Programming is ...
C++ School Programming C Basics

C++ Classes and Objects

Class: The building block of C++ that leads to Object Oriented programming is a Class. It is a user defined data type, which holds its own data members and member fu...
C++ CPP

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 it cannot have a non-static object of self type. For example,...
C C++ C++-Static Keyword

When are static objects destroyed?

Remain Careful from these two persons new friends and old enemies — Kabir What is static keyword in C++? static keyword can be applied to local variables, func...
C C++ C

Exception handling and object destruction Set 1

Predict the output of following C++ program. #include <iostream> using namespace std;    class Test { public:   Test() { cout &...
C++ cpp-advanced cpp-constructor

Preventing Object Copy in C++ (3 Different Ways)

Many times, user wants that an instance of a C++ class should not be copied at all. So, the question is how do we achieve this ? There are three ways to achieve this ...
C C++ cpp-constructor

How to make a C++ class whose objects can only be dynamically allocated?

The problem is to create a class such that the non-dynamic allocation of object causes compiler error. For example, create a class ‘Test’ with followin...
C C++ cpp-pointer

How to restrict dynamic allocation of objects in C++?

C++ programming language allows both auto(or stack allocated) and dynamically allocated objects. In java & C#, all objects must be dynamically allocated using new...
C C++ cpp-class

Object Slicing in C++

In C++, a derived class object can be assigned to a base class object, but the other way is not possible. class Base { int x, y; };    class Der...

Subscribe to Our Newsletter