函数初始化 问题
class Vehicle
{
public:
Vehicle(float speed,int total)
{
Vehicle::speed = speed;
Vehicle::total = total;
}
class Car:public Vehicle
{
public:
Car(int aird,float speed,int total):Vehicle(speed,total)
{
Car::aird = aird;
}
请问上面的 Car 函数 后面 跟 :Vehicle(speed,total) 是什么意思 ? 谢谢 !