Click here to Skip to main content
15,559,455 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can somebody write for me , as an example, definitions for the following declaration of nested class PLAIN_TEST_CLASS.
I just need a syntax sample.

This is just a test class and I need to keep declaration and definition separate.





#include "CAT_btscanner_global.h"
#include "common_header.h"


// declarations
class CAT_BTSCANNER_EXPORT CAT_btscanner
{
public:
    CAT_btscanner();            //TOK constructor
    void TestFunction (void);   // TOK 
    // nested class
    class PLAIN_TEST_CLASS
    {
        PLAIN_TEST_CLASS();
        void PLAIN_TestFunction (void );
    };
};


What I have tried:

Asked Mrs Google to give an example of nested classes with definitions. No luck.
Posted
Updated 13-Mar-22 9:09am
v2

1 solution

Try Mr Google in future: nested classes - cppreference.com[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900