Introduction to Object-Oriented Programming in Java
Sani Yusuf
Lead Software Engineering Content Developer
$$
$$
OOP is a programming paradigm that models code based on objects and real-world items
// Cookie Class
class Cookie {
// Cookie class's code goes here
}
Main
class and main
method will be used throughout this courseMain
classmain
method is the entry point of all Java codepublic 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