Can a class implement two interfaces that each contains the same method sig-nature? Explain.
What will be an ideal response?What will be an ideal response?
Yes. The class which implements an interface provides method implementations for each of the abstract methods defined in the interface. In satisfying the requirements for a method of one interface, it simultaneously satisfies the requirements for a method with the same signature in another interface.
Note: this exercise should have been deferred until Chapter 9.
You might also like to view...
MC The________ programming language was developed for the Department of Defense as an all-purpose language.
a) C b) Pascal c) Ada d) None of the above
The command to display the number of lines in a file and also save the count in a file is:
a: wc l >> xyz b: wc l xyz c: wc l xyz outfile d: wc l | xyz e: wc l xyz | tee outfile