序列的含义是什么?

Why is this A(int k=3):value(k){} equivalent with a simple assignment in the following code:

class A{
    int value;
    public:     A(int k=3):value(k){}
                int getValue(){return this->value;}

};
int main(){
A obj(4);
cout<<obj.getValue();
return 0;
}
评论