Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Why OOP-Object Oriented Programming-Lecture Slides, Slides of Object Oriented Programming

Objective of this cours is to develop effective computer programming skills in solving complex problems and to learn adequate and operational software organization in developing real life engineering solutions using powerful object oriented paradigm of the language. It includes: Corollary, Software, System, Functionality, Procedural, Programming, Languages, Instructions, Limitations

Typology: Slides

2011/2012

Uploaded on 07/31/2012

netu
netu 🇮🇳

4.5

(4)

55 documents

1 / 6

Toggle sidebar

Related documents


Partial preview of the text

Download Why OOP-Object Oriented Programming-Lecture Slides and more Slides Object Oriented Programming in PDF only on Docsity!

Corollary „ „ „„ Introduction and learning the computersoftware for an engineering system issoftware for an engineering system issignificant.Identification of an appropriate software iscritically required to enhance the systemfunctionality.If the software is unavailableIf the software is unavailable, engineer must beable to create his/her own software. engineer must be

Lets Begin docsity.com

Why OOP? „ „Limitations of procedurallanguages Developed to overcome limitations of the procedural programmingprocedural programming Fotran, etc.. ‰ ‰However, as the program grows larger thelevel of complexity increases! A set of instructions, given some input performthe desired outputDivided and organized in functions for repeatedset of instructions (easier to comprehend)set of instructions (easier to comprehend) languageslanguages, e.g., C, e g C

Usman Younis^ „„^ Un-restricted access to global dataLoose relationship between data and itscorresponding functionality^ ‰^ Often provided in a poor or insignificantorganization modell^ h^ b^ d^ d docsity.com

Usman Younis^ Un-restricted AccessUn-restricted Access (contd..)FunctionalityLocal Data^ Global DataGlobal DataNormal Case FunctionalityLocal Data

Usman YounisFunctionalityLocal DataGlobal Data^ Complex rather Confusing!Functionality^ Local DataGlobal Data^ FunctionalityLocal Data^ Global DataFunctionalityLocal Data docsity.com

Usman Younis^ Limitations (contd..)^ „^ „OOP Big-Picture^ Less able to provide “Real-World-Modeling”ofof^ ‰^ ‰Lack of “Extensibility”^ ‰^ Attributes — DataBehavior — FunctionalityLess able to provide user-defined data types,e.g., Complex Numbers (a +^ attributesattributes^ andand^ behaviorbehavior^ i b)

Usman Younis^ ‰^ ‰^ Encapsulation^ „Data Hiding^ Member FunctionsMember FunctionsObjObject AData and Functionality encapsulated in a single ObjectLocal Data^ A^ Member FunctionsMember FunctionsObjObject BLocal Data^ B docsity.com

Usman Younis^ Class & Objects^ „^ „Objects – An Example^ “Objects are members of classes”‰^ ‰This means Class acts a blue-print of an Object^ E gEyour program, as you requireAnd you can define as many Objects of a Class inyour program, as you require.g., you can define as many variables of type^ you can define as many variables of type Member Functions^ Data FunctionsMemberDataFunctions^ MemberData FunctionsMemberData^ intint^ inin

Usman Younis^ Gauges^ Steer^ Buildings docsity.com

13

Usman YounisDerived Class^ InheritanceFunction AFunction C, DLocal DataBase Class^ Function B Function ADerived ClassLocal DataFunction AFunction BFunction ELocal DataFunction B Function ADerived ClassFunction FLocal DataFunction B

docsity.com