jeudi 31 décembre 2020

What does it mean by implementation of methods by a class using interface?

If we look at the definition of an "interface" it describes

Interfaces allow you to specify what methods a class should implement.

Now I came across the term "what methods a class should implement" using an interface. What does it mean?

A class also has some methods defined in it, then what is the meaning of "what methods a class should implement" using an interface?

Aucun commentaire:

Enregistrer un commentaire