vendredi 18 mai 2018

What meaing : in a method [duplicate]

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