Why is it impossible to specify the designer signature in the interface without implementation?
- because the constructor is not part of the interface. - Grundy
|
2 answers
Interfaces should not describe objects and their fields, they should describe actions. Therefore, the interface can not describe the signature of the constructor.
- however, we can describe the internal class and the implementation of the method in it - heff
|
the interface cannot "know" to which class it will be applied, hence there is no possibility of knowing about a particular method - the class constructor
|