Object-Oriented Programming and Paradigms

20 Karteikartenvon DryLaundry
Diese Karteikarten lernenKostenlos · Spaced Repetition · iPhone, Android, Mac & Web

Alle Karten

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
Alle 20 Karten kostenlos lernen

Mehr Karteikarten: Informatik

Cybersecurity Exam 171 KartenInformatik · EnglischZackJDeep Learning: Backpropagation and Initialization59 KartenInformatik · EnglischElliottCPrinciples of Management Exam 1 Vocabulary47 KartenInformatik · EnglischAdinbealEvolución tecnológica: Las 6D y la Curva S40 KartenInformatik · SpanischLaraChapter 6: Security, privacy, and data integrity34 KartenInformatik · Englisch—Griffith—Lesson 3.3 Geoprocessing Tools29 KartenInformatik · EnglischDekanoMemory Management – Page Fault & Page Replacement22 KartenInformatik · Englisch—Griffith—Module 11 Yu NETSEC18 KartenInformatik · EnglischDiandreiIB Compsci Topic 213 KartenInformatik · EnglischnoahmzPython : Révisions générales 1ère10 Karten · 1 hinzugefügtInformatik · FranzösischAnnaGIS Concepts, Data Types and Models142 KartenInformatik · EnglischDekanoAP Computer Science Principles Terms94 KartenInformatik · EnglischJonathan

Alle Decks: Informatik

Lerne diese Decks in der App

Kostenlos auf iPhone, Android, Mac und im Web. Füge jedes Deck mit einem Tipp zu deinem Konto hinzu.

Laden im App StoreJetzt bei Google Play
Alle 20 Karten kostenlos lernen