Chapter 2
Chapter 2
FUNK
E S
TUN
OBJECT-ORIENTED
PROGRAMMING
CHAPTER 2
BY THEISA
Procedural Programming can be defined as a programming
model which is derived from structured programming, based
upon the concept of calling procedure.
Adding new data and functions is not easy. Adding new data and function is easy.
Procedural programming does not have any Object-oriented programming provides data
proper way of hiding data so it is less secure. hiding so it is more secure.
Procedural programming uses the concept of Object-oriented programming uses the concept
procedure abstraction. of data abstraction.
Examples: C, FORTRAN, Pascal, Basic, etc. Exemples: C++, Java, Python, C#, etc.
1 #1 JAVA
2 #2N PYTHON
Advantages - Simple,
secure, an official
Android language,
robust, platform-
3 #3 C++
Advantages - Ideal for
data science, artificial
intelligence, and machine
independent.
Disadvantages - Slow,
Advantages - Portable, multi- learning, flexible, plenty requires a lot of memory,
4
paradigm, good memory of libraries, huge poor GUI.
management, high community, user-friendly.
#4 C# performance, large
community of support, Disadvantages - Relatively
Advantages - Type-safe, scalable. slow, high memory
memory access capabilities,
consumption.
part of the C family of Disadvantages - No garbage
programming languages, collection, less safe than
simple, flexible, inbuilt some other object-oriented
garbage collection, more counterparts, complex, less
secure than some other C flexible.
languages, cross-platform.
Disadvantages - Generally
limited to the Windows
sphere, relies on .NET, no
independent compiler, limited
performance.
1 #5 Ruby
2 #6 PHP
Advantages - Huge
community, speedy
development, plenty of
tools and libraries such
3 #7 Type Script
Advantages - Open-
source and free,
platform-independent,
as Ruby on Rails,
readable, high safety
standard.
Advantages - Adds static user-friendly, plenty of
typing to JavaScript, library support, ideal for Disadvantages - Slow
readable, predictable, building web performance, not very
strict typing, type applications. flexible.
inference, type
annotations. Disadvantages - Losing
popularity, low
Disadvantages - Complex performance, some
typing system, required security issues.
compilation, adds
transpiring.