In Brief

  • Classes are essential components of every modern programming language.

  • Polymorphism means that a component behaves in a certain manner depending on the way it is called.

  • With the help of inheritance, the amount of code can be reduced significantly.

  • Subclasses can inherit methods from parent classes.

  • Methods with the same name can have different parameter lists.

  • When methods are missing inside a program, the compiler reports an error.

  • Interfaces help you to structure a piece of code and to make sure that a certain set of functions is implemented.

Get Mono Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.