SlidePub
Home
Categories
Login
Register
Home
General
Unit_2.00000000000000000000000000000.pdf
Unit_2.00000000000000000000000000000.pdf
pateltech13
15 views
23 slides
Feb 20, 2025
Slide
1
of 23
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
About This Presentation
oops pdf for study
Size:
1.21 MB
Language:
en
Added:
Feb 20, 2025
Slides:
23 pages
Slide Content
Slide 1
A.D. PATEL INSTITUTE OF TECHNOLOGY
(A Constituent College of CVM University)
Subject: Object Oriented Programming(102000212)
Slide 2
Concepts of OOP
Slide 3
Contents /Topics to be covered
•Introduction OOP
•Procedural Vs. Object Oriented Programming
•Principles of OOP
•Benefits and applications of OOP
Slide 4
Introduction to OOP
Slide 11
Principles of OOP
•DATAABSTRACTION :
•Abstractionreferstotheactofrepresentingessentialfeatureswithout
includingthebackgrounddetailsorexplanations.
•Classesusetheconceptofabstractionandaredefinedassize,widthand
cost,andfunctionstooperateontheattributes.
•Theyencapsulatealltheessentialpropertiesoftheobjectsthataretobe
created.
Slide 12
Principles of OOP cont…
DATAENCAPSALATION :
Thewrappingupofdataandfunctionintoasingleunit(calledclass)is
knownasencapsulation.
•Thedataisnotaccessibletotheoutsideworldandonlythose
functionswhicharewrappedintheclasscanaccessit.
•Thesefunctionsprovidetheinterfacebetweentheobjectsdataand
theprogram.
•Theinsulationofthedatafromdirectaccessbytheprogramiscalled
datahidingorinformationhiding.
Slide 13
Principles of OOP cont…
INHERITANCE:
•Inheritanceistheprocessbywhichobjectsofoneclassacquirethe
propertiesofanotherclass.
•Intheconceptofinheritanceprovidestheideaofreusability.
•Thismeanthatwecanaddadditionalfeaturestoanexistingclasswithout
modifyingit.
•Thisispossiblebyderivinganewclassfromtheexistingone.
•Thenewclasswillhavethecombinedfeaturesofboththeclasses.
Slide 14
Inheritance Example:
Slide 15
Principles of OOP cont…
POLYMORPHISIM :
•Polymorphismmeanstheabilitytotakemorethanoneform.
•Anoperationmayexhibitdifferentinstance.
•Thebehaviordependsuponthetypeofdatausedintheoperation.
•Alanguagefeaturethatallowsafunctionoroperatortobegivenmore
thanonedefinition.
•Thetypesoftheargumentswithwhichthefunctionoroperatoriscalled
determineswhichdefinitionwillbeused.
Slide 16
Principles of OOP cont…
•Overloadingmaybeoperatoroverloadingorfunctionoverloading.
•Itisabletoexpresstheoperationofadditionbyasingleoperatorsay‘+’.
•Whenthisispossibleyouusetheexpressionx+ytodenotethesumofx
andy,formanydifferenttypesofxandy;integers,floatandcomplexno.
•Youcanevendefinethe+operationfortwostringstomeanthe
concatenationofthestring.
Slide 17
Polymorphism Example
Slide 18
Dynamic Binding & Static Binding
•Bindingreferstothelinkingofaprocedurecalltothecodetotheexecuted
inresponsetothecall.
•Dynamicbindingmeansthecodeassociatedwithagivenprocedurecall
isnotknownuntilthetimeofthecallatrun-time.
•StaticBindingdefinesthepropertiesofthevariablesatcompiletime.
Thereforetheycan’tbechanged.
Slide 19
Message passing
•Anobjectorientedprogramconsistsofasetofobjectsthatcommunicate
witheachother.
•Amessageforanobjectisarequestforexecutionofaprocedureand
thereforewillinvokeafunction(procedure)inthereceivingobjectthat
generatesthedesiredresult.
•Messagepassinginvolvesspecifyingthenameoftheobject,thenameof
thefunction(message)andinformationtobesent.
Slide 20
BENEFITS OF OOP:
1.Throughinheritancewecaneliminateredundantcodeandextendtheuse
ofexistingclasses.
2.Wecanbuildprogramsfromthestandardworkingmodulesthat
communicatewithoneanother,ratherthanhavingtostartwritingthecode
fromscratch.Thisleadstosavingofdevelopmenttimeandhigher
productivity.
3.Theprincipleofdatahidinghelpstheprogrammertobuildsecure
programsthatcan’tbeinvadedbycodeinotherpartsoftheprogram.
Slide 21
BENEFITS OF OOP: Cont…
4.Itispossibletohavemultipleinstancesofanobjecttoco-existwithout
anyinterference.
5.Itiseasytopartitiontheworkinaprojectbasedonobjects.
6.Object-orientedsystemscanbeeasilyupgradedfromsmalltolarge
systems.
7.Messagepassingtechniquesforcommunicationbetweenobjectsmakes
theinterfacedescriptionwithexternalsystemsmuchsimpler.
8.Softwarecomplexitycanbeeasilymanaged
Slide 22
Applications of OOP
•Real –Time systems.
•Simulation and modeling
•Object oriented databases.
•Hypertext, hypermedia and expertext.
•Al and expert systems.
•Neural networks and parallel programming.
•Decision support and office automation systems.
•CIM / CAM / CAD system.
Slide 23
Thank you
Tags
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
15
Slides
23
Age
287 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
32 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
35 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
32 views
14
Fertility awareness methods for women in the society
Isaiah47
30 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
29 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
30 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-23)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better