Hi,
can anybody tell me the codes to import more than one class, i.e. (.cpp) file, into another class?
For example, if I have the following classes:
"class1.cpp "
"class2.cpp "
and I want to declare objects of these classes in my main class: "MainClass. cpp"
Do I need to declare header files for class1 and class2?
Also, what would be the compiling commands to compile "Mainclass.cpp" ?
Thanks
can anybody tell me the codes to import more than one class, i.e. (.cpp) file, into another class?
For example, if I have the following classes:
"class1.cpp "
"class2.cpp "
and I want to declare objects of these classes in my main class: "MainClass. cpp"
Do I need to declare header files for class1 and class2?
Also, what would be the compiling commands to compile "Mainclass.cpp" ?
Thanks
Comment