This question already has an answer here:
I would like to know the meaning of ":" in this method and why there is radius(rad)?
Circle(int rad) : radius(rad) { area = pi*radius*radius; }
Aucun commentaire:
Enregistrer un commentaire