Note: Please edit my title.
// Note : A() is present in a MyClass class
void MyClass::A(){void B();}
In this code,I want to define that function B()(Like putting stuffs e.g cout<<"hi") outside of A function,How to do that? main method cannot access "B" function until or unless it runs the A() function (Because before A function,B wasn't exist).How can I do so? I basically have a function "A" present in a class names "MyClass" ,And in that function "A", I've "created" a new function called "B" ,Now i want to "define" that B function outside of A function (Like we define a function from a class outside of the class) ,How can I do so?