#ifndef MAIN_H_ #define MAIN_H_ #include <iostream> class ClassA { public: ClassA() { } ~ClassA() { } int i = 3 protected: void function(void); }; #endif ClassA::function(); return 0;
#ifndef HEADER_H_ #define HEADER_H_ #include <iostream> class Secondclass { public: int ii = classAObj.i; //i think this is wrong method }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)