“I don’t underastand what
Class1() :a(3)means.”
It’s called member initializer list, and initializes the class member variable a with the value 3.
Also see What is this weird colon-member (“ : ”) syntax in the constructor?
solved Operator overload () [duplicate]