問題文
An interface declares a default method, and a class implements that interface without mentioning the method at all. Which statement about the class is accurate?
選択肢
- It inherits the body from the interface and it is free to override that body later, and an instance of the class can be asked to run the method right away
- It has to supply its own body for that method, because a class that implements an interface has to implement every method that the interface declares
- It inherits the method but is unable to change the behavior, because a default body is fixed once the interface has declared it
- It inherits the method as an abstract one, so the class itself has to be declared abstract until some body for that method is supplied