I am a bit new to java and so while programming i have noticed that i have to give JML annotations to my subroutines. As i was working with object-oriented programming i have noticed the use of interfaces and that i have to declare the method there with JML specification, the questions is, when after i have my interface done and i now implement the methods in the classes who implement the interface, as i declare the class once again should i also specify the JML specification above the class once again or this can be omitted as it is located in the interface?
question from:https://stackoverflow.com/questions/65670988/jml-specification-in-the-interface-and-the-implementing-class