One Pager Cheat Sheet
- This series introduces you to the concepts of
Object-Oriented Programming
, which is a fundamental concept in computer science and is frequently asked about in technical interviews, including questions about coding, UML Diagrams, class hierarchy and composition versus association. - Object-Oriented Programming views reality as made up of
objects
, each with its own properties and behaviors that can be described using attributes and methods. - OOP is a programming paradigm based on objects which contain data and code, allowing them to have properties and methods which can be used with
instances
of the same object. - An object in Object-Oriented Programming has
properties
andmethods
. - We can define a class using the
class
keyword, which acts as a blueprint for an object, consisting of properties and methods, as illustrated by a simpleKeyboard
class example in Java. - We need to use the
Keyboard
class to create different kinds of objects by instantiating them with thenew
keyword. - To create an instance of a class and assign it to a variable, the syntax
variable = new ClassName();
must be used. - The OOP concept of a
class
and associated functions are supported in most modern languages such asC++
,Python
, andJavascript
. - Completing this series will enable you to understand the fundamentals of
Object-Oriented Programming
and prepare you for OOP questions in technical interviews.