Object-Oriented Programming (OOP)
What is Object-Oriented Programming? OOP is a programming concept of "objects" that can contain data and code. The data is contained in the form of fields, and the code is in the form of procedures. The feature of objects is that procedures are attached to them and can access/modify the object's data fields. Structure of OOP: Classes: A class is a blueprint for creating objects. Objects: An object is an instance of a class. Methods: A method is a function defined inside a class that describes the specific behaviors of an object Attributes: Are defined in the class template and represent the state of an object. Principles of OOP: Encapsulation: Abstraction: Inheritance: Polymorphism