LESSON 1 - Procedural vs OOP Flashcards
is a top-to-bottom approach where in we solve problem as straightforward as possible by getting into the main problem, dividing it into smaller subproblems, until we arrive at the solution
Procedural Programming
In this approach (Procedural Programming), we intend to create a program to do a _____ ____ for a specific purpose.
specific task
- it emphasizes the use of functions, loops, and conditional statements
- code is structured as a sequence of operations
- It’s often likened to a step by step recipe
Procedural Programming
This is a concept where we create a data model that defines both the data type and the types of operations that can be applied to the data model; This is an approach to design modular reusable software systems
Object-oriented programming
_____ ______ languages are considered as procedural. Examples are: C, Pascal, BASIC/VB, Ada and COBOL
Traditional Programming
is a paradigm based on the concept of “objects”
Object-oriented programming
In computer science, an ___ can be a variable, a data structure, a function, or a method, and as such, is a value in memory referenced by identifier
Object
represents a real entity with attributes and behaviors by combining the data and code into one - has a unique identity in the system
object
are instances of classes and encapsulate both data (attributes) and behavior (methods)
object
OOP languages includes…
Java, C++, python, Ruby, Objective-C, etc
is always related to real-world objects since we never limit their capabilities to only one task
Object-oriented Programming
OOP has access Modifiers named ___, ___, and ____
Public, Private and Protected
Procedural Programming focuses on __ While OOP focuses on __
Functions and objects
OOP has more features like ____ and ____
Inheritance and Polymorphism
adoption of all non private properties and methods of one class to the other
Inheritance