If my initialization of variables in the .h in the constructor occurs by default, do I need to initialize them again in the .cpp file? For example:
// .h ΡΠ°ΠΉΠ» class A { A(int _r = 1, int _m = 2); int r, m; }; // .cpp ΡΠ°ΠΉΠ» A::A(int _r, int _m):r(_r),m(_m) // Π½ΡΠΆΠ½Π° Π»ΠΈ ΠΈΠ½ΠΈΡΠΈΠ°Π»ΠΈΠ·Π°ΡΠΈΡ _r ΠΈ _m ? { } Or is it better to do the opposite: initialization in .cpp , but not in .h ?