when writing a class, do i need create a header file, a implementation file and the test file to test the class. If so, do i need to create these file sperately?
thank you for your help
when writing a class, do i need create a header file, a implementation file and the test file to test the class. If so, do i need to create these file sperately?
thank you for your help
No, you don't HAVE to, but it's good practice to put the class definition in a header file and the implementation in a source file.Originally posted by henry
when writing a class, do i need create a header file, a implementation file and the test file to test the class.
Not quite sure what you're asking here. You can make the files whenever you want, as long as you #include the file with the definition (considering you choose to put the class definition in a header file).Originally posted by henry
do i need to create these file sperately?