What is an interface and what is an abstract class?

In an interface, all methods must be abstract (must not be defined). In an abstract class, some methods can be defined. In an interface, no accessibility modifiers are allowed, whereas it is allowed in abstract classes.

Comments

Popular posts from this blog

How do I calculate a MD5 hash from a string?

What is WSDL?