+ 2

C++ says that class first letter should be capital but why string class first letter is small 's'?

13th Sep 2020, 7:17 AM
Gaurav Rawat
Gaurav Rawat - avatar
2 Antworten
+ 4
Its just a convection to take first letter as capital. You can take any of your choice. String is a class, but is used as a datatype for most of the time. So its small "s" so that normal users dont get confused about ints floats chars and "Strings". I think you understood what I'm saying😅
13th Sep 2020, 7:45 AM
Charitra
Charitra - avatar
13th Sep 2020, 8:08 AM
Gaurav Rawat
Gaurav Rawat - avatar