OOP Flashcards
What does OOP stand for?
Object oriented programming is a programming paradigm that uses objects which have attributes and behaviors
What is a class?
Templates used to define objects
What are attributes?
Variables contained within and associated to an object
What is an object?
An instance of a class
What are the 4 main principles of OOP?
Encapsulation, inheritance, polymorphism, and abstraction.
What is encapsulation
The practice of keeping an object private making them only accessible from inside the class
What is polymorphism?
Polymorphism is the ability for a single method or operator to work with multiple types of data.
What is inheritance?
Inheritance is the ability for one class to inherit properties and methods from a parent class.
What is abstraction?
Abstraction is the practice of only exposing the necessary information about an object and hiding the implementation details, allowing for a simpler and more flexible interface.