Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ / Objective-C : The two files of a class are called Header and ...?

In languages like C++ or Objective-C a class normally consist of two files. The first is called Header or Interface but what is the "official" name of the other file?

In some books it's just called "Codefile" in other "implementation file" or "message file" for Objective-C. Which name is the right name? I need to write a tutorials and I have no idea.

like image 408
TalkingCode Avatar asked Jan 25 '26 21:01

TalkingCode


1 Answers

In C++, I always use these terms:
- "Header file" for the .h or .hpp file
- "Source file" for the .cpp or .cxx file
but I don't think there is a real official naming guideline

like image 82
Seb Killer Avatar answered Jan 27 '26 09:01

Seb Killer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!