Ever wondered how can you design a class in C++ which can’t be inherited. Java and C# programming languages... 24 May Simulating final class in C++ | cpp | 0 Ever wondered how can you design a class in C++ which can’t be inherited. Java and C# programming languages...
A nested class is a class which is declared in another enclosing class. A nested class is a member... 24 May Nested Classes in C++ | cpp | 0 A nested class is a class which is declared in another enclosing class. A nested class is a member...
A class declared inside a function becomes local to that function and is called Local Class in C++. For... 24 May Local Classes in C++ | cpp | 0 A class declared inside a function becomes local to that function and is called Local Class in C++. For...
Friend Class A friend class can access private and protected members of other class in which it is declared... 24 May Friend class and function in C++ | cpp | 0 Friend Class A friend class can access private and protected members of other class in which it is declared...
1) static member functions do not have this pointer. For example following program fails in compilation with error “`this’... 24 May Some interesting facts about static member functions in C++ | cpp | 0 1) static member functions do not have this pointer. For example following program fails in compilation with error “`this’...
Static data member are class members that are declared using static keyword A static member has certain special characteristics... 24 May Static data members in C++ | cpp | 0 Static data member are class members that are declared using static keyword A static member has certain special characteristics...
When structure is introduced in C, that time there is no concept of Object. So According to C standard... 24 May Why is the size of an empty class not zero in C++? | cpp | 0 When structure is introduced in C, that time there is no concept of Object. So According to C standard...
A class declaration can contain static object of self type, it can also have pointer to self type, but... 24 May Can a C++ class have an object of self type? | cpp | 0 A class declaration can contain static object of self type, it can also have pointer to self type, but...
In C++, a structure is the same as a class except for a few differences. The most important of... 24 May Structure vs class in C++ | cpp | 0 In C++, a structure is the same as a class except for a few differences. The most important of...
Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means... 24 May Abstraction in C++ | cpp | 0 Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means...