View Single Post
Mar5-12, 12:20 AM   #2
 
1. Function declaration needs a return type (C/C++ is a static typed language).
2. const declaration means the object's properties are not changeable until the const-ness is not cast away.