Introduction - If you have any usage issues, please Google them yourself
Define a car (vehicle) base class, with Run, Stop and other member functions, derived from the bicycle (bicycle) class, car (motorcar) class, derived from bicycle and motorcar motorcycle (motorcycle) class, they all have Run, Stop and other member functions. Observe the function of virtual function. The people class overload "on the second experiment and the = =" operator "=" operator "= =" operator to judge ID properties of two people class objects are equal; "=" operator to achieve the object of the people class assignment.