Interface is similar to a class which may contain method's signature only but not bodies and it is a formal set of method and constant
declarations that must be defined by the class that implements it. Interfaces are useful for declaring methods that one or more classes
are expected to implement, capturing similarities between unrelated classes without forcing a class relationship and determining an object's
programming interface without revealing the actual body of the class.
I'm Nataraja Gootooru, programmer by profession and passionate about technologies. All
examples given here are as simple as possible to help beginners. The source code is compiled and tested in my dev environment.
If you come across any
mistakes or bugs, please email me to [email protected] or you can comment on the page.