Its a way of structuring code using objects.
4 Core Concepts:
Encapsulation
Inheritance
Polymorphism
Abstraction
Example (simple):
Python
class Car:
def __init__(self, name):
self.name = name
Its a way of structuring code using objects.
4 Core Concepts:
Encapsulation
Inheritance
Polymorphism
Abstraction
Example (simple):
Python
class Car:
def __init__(self, name):
self.name = name
Leave a Reply
You must be logged in to post a comment.