Add a Nested Class : Nested Class « Class « Visual C++ .NET





Add a Nested Class

 
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
class Printer 
{ 
    class InkLevel; 
    friend class Printer::InkLevel;
    class PaperOutDetector; 
    friend class Printer:: PaperOutDetector;
}; 
class Printer::InkLevel
{ 

};


int main(void) {
  

}

   
  










Related examples in the same category

1.Nested Class