Programming Paradigms Flashcards
What generation are high-level languages?
Third
What generation are low-level languages?
Machine Code & Assembly Language
Define paradigm
A style or way of thinking about how to solve a problem
What are imperative languages designed to do?
Solve specific problem types
What are the 4 main principles of OOP?
Encapsulation, abstraction, inheritance, and polymorphism
What is encapsulation?
The state of an object is private and other objects can only interact with the object’s public methods
What is abstraction?
The complexities of how the object works are hidden
What is inheritance?
When subclasses inherit properties and methods from parent classes
What is polymorphism?
The ability of an object to take on many different forms
How do programmers use object orientated code?
They use classes to define objects in order to model the problem