Welcome

Introduction to Object-Oriented Programming in Java

Sani Yusuf

Lead Software Engineering Content Developer

My experience with Java

  • Working with Java since 2010
    • Algorithms
    • Android mobile applications
  • Course created in collaboration with Miller Archury
    • Senior Software Engineer at Google
    • Former Microsoft Engineer

$$ Microsoft Logo

Android Mobile Application

Java Algorithm

Google Logo

1 https://blog.google/press/
Introduction to Object-Oriented Programming in Java

Topics covered

  • Explore Java's approach to Object-Oriented Programming
  • Simplify the complexities of Object-Oriented Programming

Learn with ease

Introduction to Object-Oriented Programming in Java

What is object oriented programming (OOP)

$$

OOP is a programming paradigm that models code based on objects and real-world items

OOP Difficult to learn sometimes

Introduction to Object-Oriented Programming in Java

What is a class?

  • Classes are like Cookie cutters
  • Cookies created take the shape of the cookie cutter
  • Classes are blueprints for our code

Blueprint

Cookie Cutter

Star Cookie

Introduction to Object-Oriented Programming in Java

Structure of a class


  // Cookie Class
  class Cookie {
    // Cookie class's code goes here
  }

Star Cookie

Star Cookie

Introduction to Object-Oriented Programming in Java

Naming object instance

  • NOTE: The Main class and main method will be used throughout this course
  • All code will be inside the Main class
    • The main method is the entry point of all Java code

  public static class Main {  

    class Cookie {

    }

    public static void main(String[] args) {

// Give the object instance a name Cookie myCookie = new Cookie(); } }
Introduction to Object-Oriented Programming in Java

Let's practice!

Introduction to Object-Oriented Programming in Java

Preparing Video For Download...