oop

Object

Introduction

Object is the base module in the Object Oriented Programming (OOP). An Object can be a variable, data structure (like an array, map, etc), or even a function or method. In OOP, we model real world objects like animals, vehicles, etc.

An object can be defined in a class, which can be defined as the blueprint of the object. Then we can create instances of that class, which we call objects. We can use these objects, their methods and variables in our code after.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow