Rabu, 30 November 2016

How to implement nested classes in C++

C++ allows programmers to declare one class inside another class. Such classes are called nested classes. When a class B is declared inside class A, class B cannot access the members of class A. But class A can access the members of class B through an object of class B. Following are the properties of a nested class: A nested class is declared inside another class. The scope of inner class is restricted by the outer class. While declaring an object of inner class, the name of the inner class must be preceded by the outer class name and scope

The post How to implement nested classes in C++ appeared first on Coding Security.


How to implement nested classes in C++
read more

Tidak ada komentar:

Posting Komentar