I'm having trouble initializing the fields of a class object member variable through a class constructor.
This is part of the code that creates a Circle Object:
And here's the class definition for the Circle and Point classes:
Is this the appropriate way of writing the constructor for the Circle function? If so, what's the correct way of initializing the x and y fields for the center_ member variable? Would it be something like this:
Circle::Circle(Point(int x, int y), double n)
{
radius_ = n;
center_{x, y};
}