Chapter 4

Object-Oriented Programming

Learning Objectives

By the end of this lesson, you'll be able to:

  • Explain the concept of classes and objects in Java
  • Explain the four underlying principles of object-oriented programming
  • Create simple classes and access them using objects in Java
  • Implement inheritance in Java
  • Experiment with method overloading and overriding in Java
  • Create and use annotations in Java

Introduction

So far, we've looked at the basics of Java and how to use simple constructs such as conditional statements and looping statements, and how methods are implemented in Java. These basic ideas are very important to understand and are useful when building simple programs. However, to build and maintain large and complex programs, ...

Get Java Fundamentals 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.