Object-Oriented Programming and Paradigms

20 flashcardsby DryLaundry
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What are the 4 pillars of OOP
-Encapsulation
-Abstraction
-Inheritance
-Polymorphism
2
What is procedural programming?
A programming paradigm using procedures that call eachother
3
What are the two programming Paradigms?
-Imperitive programming
-Decalarative programming
4
What is a programming paradigm?
A method or style of solving problems using a programming language
5
What is the main benfit of using programming paradigms?
It provides a structured approach and set of principles that guide how programs are created
6
What is imperative programming?
A programming paradigm which is based on steps or series of statements
7
What is declarative programming?
Declarative programming is a programming style that focuses on what needs to be done rather than how to do it
8
What are 2 advantages of declarative programming?
-Simplifies code by focusing on the desired result instead of implementation details.
-Makes parallel programming and complex data processing easier to manage.
9
What is parallel computing?
It is the use of multiple processing elements simultaneously solving any problem
10
What are 2 disadvantages of declarative programming?
-Provides less control over performance optimization
-Debugging and understanding internal execution can sometimes be difficult
11
What are 2 advantages of imperative programming?
-Simple and easy to understand and implement
-Supports programming constructs like variables, loops and conditions
12
What are 2 disadvantages of imperative programming?
-Complex problems become difficult to manage and maintain
-Less efficient for large-scale and parallel programming applications
13
What is encapsulation?
The practice of grouping data (attributes) and methods (functions) within a class
14
"The best functions are those with ______"
No parameters!
15
What are 2 benefits of encapsulation?
-Reduces complexity
-Increases reusability
16
What are 2 benefits of abstraction?
-Reduces complexity
-Isolate impact of changes
17
What are 2 benefits of inheritance?
Eliminate redundant code
18
What are 3 benefits of polymorphism
-Helps make code more flexible,
-reusable
-and easier to maintain
19
What is inheritance?
Allows a class to inherit the properties and behaviours of another class
20
What is polymorphism?
A concept in programming that allows objects to take on different forms or behaviours
Study all 20 cards for free

More Computer science flashcards

SYO-601 Encryption/Hashing25 cardsComputer science · Englishr3lykTCP/IP Ports that may appear in Comptia A+ 1101 Exam20 cardsComputer science · Englishan OutLearn studentSearching and Hashing14 cardsComputer science · EnglishMaria1.2.4 TYPES OF PROGRAMMIG LANGUAGES9 cardsComputer science · EnglishSabs2023Chapter 8: TCP/IP Applications230 cardsComputer science · EnglishManethelNetwork Security: Authentication Methods107 cardsComputer science · EnglishSeanIT Troubleshooting and RAID77 cardsComputer science · EnglishpzxliIT Administration: Backup and Restore66 cardsComputer science · EnglishJayData Structures Final Review - GRAPHS ONLY54 cardsComputer science · EnglishHariSystems Implementation44 cardsComputer science · English—Griffith—Chapter 3: Hardware38 cardsComputer science · English—Griffith—Chapter 4: Processor Fundamentals32 cardsComputer science · English—Griffith—

All Computer science decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 20 cards for free