Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Samenvatting

Summary Unit 6 Object Oriented Programming

Beoordeling
-
Verkocht
-
Pagina's
13
Geüpload op
12-08-2021
Geschreven in
2018/2019

P1 Application and limits of Procedural P3 Explaining Sequence, Selection and Iteration P4 Benefits of Variety of Data Types P5 Explain the role of software design principles and software structures M1 Explain the importance of the quality of code D1 Factors that can improve the readability of the code

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

P1 Application and limits of Procedural
Many different types of programming are there which are available over all these years. All the
programming languages falls into 1 of the 3 programming paradigms: Procedural, Object-Oriented,
event-driven. The 3 of these categories and helping the development of efficient, new and error-free
programming languages.


Programming Paradigms
Procedural programming is basically a programming language and it is properly structured and has
proper procedures. In procedure programming the programs are broken down into functions and
procedures. It has multiple procedures and all are linked to the main program, each of the procedure
have a purpose and it is assigned by the main program. For new programmers/beginners the language
is very straightforward and easy to understand it is used for simple systems.
An example of procedural language is python because of it using routines, sub routines, methods or
function. C++ is also an example of procedural language as it comes from C which is also a
procedural language.


The advantages and disadvantages of procedural programming are as follows:
Advantages
 Useful for general purpose programing
 Portable source code
 Easy to follow and understand due to structed well
Disadvantages
 Too many procedural language and a programmer has to specialize in a specific language
 Would take a very long time for debugging



Object Orientated Programming
It breaks a program down into objects. OOP is different when compared to procedural programming
as OOP has a different structural format. OOP is used for dealing with complex and more advanced
systems while procedural programming was not able to fix system difficulties. Object are designed to
do a set of activities by a programmer. The objects are designed a set of activities according to how
the programmer has set it. The functions and data are linked together in the building blocks of life. In
this programming the objects are related a lot to the real-world objects and the objects are often
considered as classes. In this programming paradigm the functions of the program can easily be
changed as the code is stored in classes.


Advantages
 OOP has made it easy to maintain and the modifying of the existing code as any new object
can be created by making small differences to the ones which are already made.
 OOP helps in providing a clearer modular structure for the programs and this is why it is good
for defining the abstract data types where the implementation details are hidden.

, Disadvantages
 Object oriented programs are very large in size, this used to be a problem during the times
when memory was limited.
 More planning is needed which is very time consuming as planning is needed before writing
the code.
 Object oriented programs tend to be slower due to it has the need of more system resources.



Event Driven Programming

It is where a program responds to an event which has happened due to the users input (ex: clicking a
button). It is a type of programming which is different from the other programming paradigms which
the system does not respond to the structure of the program. Although it’s program structure is very
similar to OOP. It requires a programmer to write event procedures to respond to the inputs of the
user. The program is interactive and is used for GUI or graphical user interface and other programs
like photoshop. As the program is good it requires more processing power and more memory.

Advantages

 The programmer can easily make changes if the changes are required in the program.
 Language is easy to understand so programs are easy to make.

Disadvantages
 Memory intensive
 These programs are known to be slow as too much processing power is needed to make the
calculations which make these programs run. 9




P3 Explaining Sequence, Selection and Iteration

Sequencing:
A code will be processed by the computer based on how a programmer wants it. Starting from line
one of the program and then ending at the bottom. Instructions which comes one after the other after
the earlier instruction is completed it may take the computer some amount of time to process and
continue to the next instruction. An example of a sequence is a flow chart as it is easy to understand
since it has different shapes and colours to understand. It is also step by step like a sequence. It also
has different steps leading towards the end. None of the action can be skipped as then the sequence
will not remain.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
12 augustus 2021
Aantal pagina's
13
Geschreven in
2018/2019
Type
SAMENVATTING

Onderwerpen

$10.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
Hassan399

Maak kennis met de verkoper

Seller avatar
Hassan399 none
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
3
Lid sinds
7 jaar
Aantal volgers
3
Documenten
22
Laatst verkocht
3 jaar geleden

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen