Suppose I have the following interface IFace, and an implementation of the interface Add:
interface IFace {
add(a: number, b:number): number
}
class Add implements IFace {
add(a,b)
}
When implementing the add() method in my Add class, is it possible to do so without specifying:
- the return type of the method?
- the types of arguments
aandb?
I tried searching on Stack Overflow and the internet didn't find anything relevant.
add(a, b)does implementIFace.addor not.