100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Object Oriented Programming Notes

Rating
-
Sold
-
Pages
51
Uploaded on
09-04-2024
Written in
2023/2024

This unit is about the introduction of Object Oriented Programming. It mainly focuses on C++ programming language. It covers all basics of C++ programming language

Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
April 9, 2024
Number of pages
51
Written in
2023/2024
Type
Class notes
Professor(s)
Sathya k
Contains
All classes

Subjects

Content preview

C++

, Comparison of Procedural and Object Oriented Programming
Parameter Object Oriented Programming Procedural Programming

Definition Object-oriented Programming is a programming Procedural Programming is a
language that uses classes and objects to create programming language that follows a
models based on the real world environment. In step-by-step approach to break down a
OOPs, it makes it easy to maintain and modify task into a collection of variables and
existing code as new objects are created routines (or subroutines) through a
inheriting characteristics from existing ones. sequence of instructions. Each step is
carried out in order in a systematic
manner so that a computer can
understand what to do.
Approach In OOPs concept of objects and classes is In procedural programming, the main
introduced and hence the program is divided into program is divided into small parts
small chunks called objects which are instances of based on the functions and is treated as
classes. separate program for individual smaller
program.


Access In OOPs access modifiers are introduced namely as No such modifiers are introduced in
modifiers Private, Public, and Protected. procedural programming.

Security Due to abstraction in OOPs data hiding is possible Procedural programming is less secure
and hence it is more secure than POP. as compare to OOPs.

,Complexity OOPs due to modularity in its programs is There is no simple process to
less complex and hence new data objects add data in procedural
can be created easily from existing objects programming, at least not
making object-oriented programs easy to without revising the whole
modify program.
Conclusion


Program OOP divides a program into small parts and Procedural programming
division these parts are referred to as objects. divides a program into small
programs and each small
program is referred to as a
function.
Importance OOP gives importance to data rather than Procedural programming does
functions or procedures. not give importance to data.
In POP, functions along with
sequence of actions are
followed.
Inheritance OOP provides inheritance in three modes Procedural programming does
i.e. protected, private, and public not provide any inheritance.


Examples C++, C#, Java, Python, etc. are the examples C, BASIC, COBOL, Pascal, etc.
of OOP languages. are the examples POP
languages.

, List of OOPS languages and its features
• Object-oriented programming, or OOPs, is a
programming model which breaks down a problem
in terms of classes and objects.
• OOPs allows the creation of several instances of a
class called objects, hence facilitating code reuse.
• Some object-oriented programming languages
are C++, Java, Javascript,Python, etc.
• The four main pillars or features of object-oriented
programming include
• Abstraction,
• Polymorphism,
• Inheritance, and
• Encapsulation,
$10.39
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
aleenalm

Get to know the seller

Seller avatar
aleenalm SRMIST
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions