Please consider the below scenario:
I have a header file and its corresponding source file:
exmp.h (Header file)
exmp.cpp (
I can see stars. Does this work instead?
class sampleClass { ..... ..... myClass ptr; };
Do not use pointers unless you know what you are doing.