C++ says that class first letter should be capital but why string class first letter is small 's'? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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