Docsity

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

Toggle sidebar
bg1
2/8/2011
8
Corollary
Introduction and learning the computer
software for an engineering system is
software for an engineering system is
significant.
Identification of an appropriate software is
critically required to enhance the system
functionality.
If the software is unavailable engineer must be
If the software is unavailable
,
engineer must be
able to create his/her own software.
Lets Begin
docsity.com
pf3
pf4
pf5

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^ 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