So lets say I have a class called Math
class Math{
func add(numberOne: Int, numberTwo: Int) -> Int{
var answer: Int = numberOne + numberTwo
return answer
}
In this class there is a function which allows the user to add two numbers.
I now have another class which is a subclass of a UIViewController and I want to use the add function from the Math class, how do I do this?
class myViewController: UIViewController{
//Math.add()???
}