4.46 out of 5
2924 reviews on Udemy

Master Object Oriented Design in Java – Homework + Solutions

Don't just learn Java! Learn to write practical industry standard object oriented software and super charge your career!
Imtiaz Ahmad
18,133 students enrolled
English More
Advance your programming skills from a junior level newbie to a competent intermediate level object oriented software developer
Design and develop software using best practices in Object oriented programming
Apply the 5 crucial object oriented design principles using Java
Apply design patterns such as Strategy, Observer, Template Method, Factory, and Builder
Make the leap into professional software craftsmanship and take your career to the next level!

LATEST: Course Updated Nov 2018

SUPER CHARGE OF YOUR PROGRAMMING CAREER and acquire some seriously marketable skills!

    Just because you learned how to use a hammer doesn’t mean you are ready to construct a building. Similarly, It’s not enough to just understand a programming language. That’s just a tool that can be used to develop various programs. The real craftsmanship is in software DESIGN

    This course is designed to take a junior level programmer with limited knowledge about object orientation to a competent level object oriented software designer! I expect you to understand the basics of loops, methods and conditionals in Java. You’ll be completing hands-on HOMEWORK Exercises through out the course! I have provided detailed video solutions to the exercises so that you can check your answers and get step by step instructions of how to tackle the object oriented design assignments. 

      You can find plenty of resources online for solving a programming puzzle  or practicing algorithms. But… when it comes to object oriented design,  admittedly, there is limited material out there for you to practice. So  in this course, we use a LEARN-BY-DOING  approach to explore a series of progressively challenging exercises to  discover the 5 core object oriented design PRINCIPLES summarized by an  acronym called SOLID: 

  (S). Single Responsibility   

          (O). Open/Closed   

    (L).  Liskov Substitution   

          (l ). Interface Segregation   

          (D). Dependency Inversion   

      During this journey you’ll get practice applying some of the most important DESIGN PATTERNS that competent developers must have under their belt. There are so many design patterns out there, but we’ll be thoroughly covering only the most important ones. Save yourself the time from learning all the design patterns and going on a design frenzy. Focus on the 20% that covers 80% of the scenarios and add miles to your programming efficiency. 

  These cover 80% of patterns used out there in professional software development.   

  1). Strategy Pattern   

          2). Observer Pattern   

          3). Builder pattern   

          4). Factory method pattern   

          5). Template Method Pattern   

  6). Singleton Pattern 

                              The topics can be applied to pretty much any object oriented language. But, we’ll be using Java, so I expect you to be familiar with the basic language constructs such as classes, methods and interfaces. But don’t worry if you don’t know about these, I’ve taken the time to create 6 comprehensive prerequisite lessons on introduction to object orientation. In these lessons, new comers can learn about the basics of object orientation such as: 

  1). Classes and objects   

          2). Inheritance and polymorphism,   

          3). Interfaces and abstract classes.   

                              I’m certain that, by practicing the concepts covered, you’ll make a substantial leap forward in your programming career. I hope to see you in the coming lessons.

This course is from This site offers lectures on practical software development topics to immediately impact your programming skills. Things you can take to your interview and feel confident in your abilities!

How to make the most of this course
Download Source Code for Lectures

Introductory Principles in Object Orientation (Optional Prerequisite)

Class and Object (Optional Prerequisite)
Program Flow and Using Constructor (Optional Prerequisite)
Object and Class
Application Runtime (Optional Prerequisite)
Java Behind The Scenes
Class Inheritance (Optional Prerequisite)
Application Runtime Quiz
Interfaces and Abstractions (Optional Prerequisite)
Abstract Classes (Optional Prerequisite)
Interfaces and Abstract Classes

This quiz will test your knowledge on Abstract Classes and Interfaces

Message From The Instructor

Object Oriented Design Principles (SOLID)

Objects, Messages and Dependencies

Before starting this section of the course, I encourage you to watch the videos in the prerequisite section if you are not familiar with the basics of Object Oriented Programming in Java. There are 6 lectures there that cover difference between what an object is, and a class, the basics of Inheritance, Polymorphism, Interfaces and Abstract Classes.

Forming Associations Between Objects
Overview of Software Design
Single Responsibility Principle

Make sure to watch the entire video and try the exercise before watching the next video that contains the solution.

UML Diagram - Single Responsibility
Single Responsibility - Homework
Quiz on Single Responsibility Principle

This quiz will test your understanding on the single responsibility principle

Open Closed Principle & STRATEGY Pattern
Open Closed Principle - Homework
Quiz on the Open Closed Principle

This quiz will test your understand of the open closed principle

Dependency Inversion + TEMPLATE Pattern

I wanted to cover this design principle next because I think it is more fitting to learning path we are following even though it's the last letter of the SOLID acronym. We also learn about the Template Method Design Pattern in the lecture. Make sure to watch the entire video and try the exercise before watching the next video containing the solution.

Visual Representation of Dependency Inversion: Click Here

Dependency Inversion & Template pattern - Homework Solution
UML Diagram - Dependency Inversion
Quiz on Dependency Inversion principle

This will test your knowledge of the Dependency Inversion Principle

Liskov Substitution Principle
Liskov Substitution Principle UML
Quiz on Liskov Substitution Principle

This quiz will test your understanding of the Liskov Substitution principle

Interface Segregation Principle
UML Diagram - Interface Segregation
Quiz on Interface Segregation Principle

This quiz will test your knowledge of the interface segregation Principle

Object Oriented Design Patterns in Practice

Dependency Injection Part 1
Dependency Injection Part 2 (Using Spring)
Observer Pattern

Make sure to watch the entire video and try the exercise before watching the solution video

Observer Pattern - Homework Solution
UML Diagram - Observer Pattern
Coffee Shop Assignment (another application of the observer pattern)
Builder Pattern
Factory Design Pattern
UML Diagram - Factory Pattern
Singleton Design Pattern (Newly Added)
Real world Project - Create an API

Course Extras!

Automatically generate UML diagrams from java code Tutorial
Final Comments from Instructor
Bonus: Lifetime Access to All My Course
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.5 out of 5
2924 Ratings

Detailed Rating

Stars 5
Stars 4
Stars 3
Stars 2
Stars 1
30-Day Money-Back Guarantee


5 hours on-demand video
6 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion