Static & Const

Static :  类外面来赋值

int A::n = 3;

Const: 参数化列表来进行赋值

A(int a,int b ):y(b)

发表回复