I have been doing a lot of object-oriented programming lately, so my question is a little related to it.
I was teaching mathematics (geometry) to my friend and I came up with a question:
In Scala we would have circle probably defined as this:
class Circle(val radius: Double) {
def area = π*radius^2
def diameter = 2*radius
...
}
So Circle class has a property name "radius" and methods (area, diameter, etc.) which use "radius" in calculations.
Are these all "properties" of a circle in mathematics, or are there different terms for radius (since everything is defined by radius) and methods such as an area?