Chapter 5 - Java for Beginners Course


In the first 3 chapters we covered the basic building blocks that are used in the Java language and we gave an overview of the concepts and syntax. With these basics already covered, we’ll now start delving into the details of different concepts.

In this chapter we’ll cover Classes and Interfaces, more specifically:

  • Access level modifiers

  • Class declarations, including how to declare fields, methods and constructors

  • Some OOP features present in the Java language, including Inheritance, Encapsulation, Composition and Polymorphism.

  • Class methods and fields

  • Abstract classes

  • Interfaces

  • Final classes and class members