Ad Code

Write at least 5 General Naming conventions for C++ or Java.

Write at least 5 General Naming conventions for C++ or Java

1. Names representing types must be nouns and written in mixed case starting with upper case. Line, FilePrefix
2. Variable names must be in mixed case starting with lower case. line, filePrefix.
3. Names representing constants must be all uppercase using underscore to separate words. MAX_ITERATIONS, COLOR_RED.
4. Names representing methods and functions should be verbs and written in mixed case starting with lower case. getName(), computeTotalWidth().
5. Names representing template types in C++ should be a single uppercase letter. template<class T> template<class C, class D>
Reactions

Post a Comment

0 Comments