Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

DataCamp

Introduction to Object-Oriented Programming in Java

via DataCamp

Overview

DataCamp Flash Sale:
50% Off - Build Data and AI Skills!
Grab it
Learn key object-oriented programming concepts, from basic classes and objects to advanced topics like inheritance and polymorphism.

Object-oriented programming (OOP) is a powerful approach to writing organized and scalable software. Java, one of the world’s most popular programming languages, brings OOP to life with clear syntax and strong community support. In this course, you’ll learn how to use Java to model real-world systems using classes, objects, inheritance, encapsulation, and more.



Build Real-World Java Classes and Objects


Begin by learning to define classes as blueprints and use them to create object instances. You’ll apply core Java syntax to build reusable components that mirror real-world entities, like cars, passports, and formulas.



Add Behavior with Constructors and Methods


Master the use of constructors to initialize object state and explore methods to add behavior. You’ll write both void and return-type methods, helping you create dynamic and interactive programs.



Secure and Reuse Code with Encapsulation and Inheritance


Explore how access modifiers control what’s visible to users of your code. Learn how to use inheritance and abstract classes to eliminate duplication and create structured hierarchies.



Apply Interfaces and Polymorphism


Use interfaces to add flexibility and implement shared behavior across classes. Finally, unlock the power of polymorphism by overriding and overloading methods for more adaptable software designs.



By the end, you’ll be able to design modular Java applications with clean, object-oriented architecture.


Syllabus

  • Object-Oriented Programming (OOP) in Java
    • Explore the fundamentals of object-oriented programming (OOP) in Java, focusing on the distinctions between primitive data types and objects. Learn to define and create classes and objects and understand the critical components of classes, such as fields, constructors, and methods.
  • Encapsulation & Inheritance
    • Deep dive into object-oriented programming by exploring key concepts such as encapsulation, inheritance, and abstraction. Learn how to control access to class members, extend class functionality, and define abstract concepts and contracts that ensure consistency across implementations.
  • Interfaces and Polymorphism
    • Strengthen your object-oriented programming skills by exploring how Java interfaces and polymorphism work. Learn how to define interfaces and implement them in classes to support flexible behavior. Practice method overriding to customize behavior in subclasses and use method overloading to define multiple forms of a method within the same class. You’ll also explore constructor overloading to enable versatile object creation. These hands-on exercises will help you write more adaptable and reusable Java code.

Taught by

Miller Andrés Trujillo Achury

Reviews

Start your review of Introduction to Object-Oriented Programming in Java

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.