0

C++ and initializing constants in separator files

I have a header file which declares the prototype for the constructor. In a separate file I have the constructor and all other methods declared outside the class. The constructor should instate constants also. How do I define the prototype, with the : constant_name(constant arg), etc.. or without and just write it in full form in the external file?

27th Jul 2022, 11:11 AM
sarthak jain
sarthak jain - avatar
1 Answer
0
"How do I define the prototype? with the constant_name(constant arg) ..." Are you asking how to define a constant, a function with constant argument, a class' constructor, or something else? it's not clear as it is now ...
27th Jul 2022, 12:08 PM
Ipang