Menu
Coddy logo textTech

Introduction

Lesson 1 of 12 in Coddy's Basics of Classes and Objects in Java course.

Java is an object-oriented programming (also known as, OOP) language.

Object-oriented programming is all about creating classes and objects that contain both data and methods.

What are classes and objects?

A class is a template for objects, and an object is an instance of a class.

Let's see some examples:

ClassObject(s)
AnimalCow
Monkey
Turtle
PersonBob
John
Alice
CarToyota
Volvo
Tesla

When the individual objects are created, they inherit all the variables and methods from the class.
 

Let's dive deeper!

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

Try it yourself

This lesson doesn't include a code challenge.

All lessons in Basics of Classes and Objects in Java