Download presentation
Presentation is loading. Please wait.
Published byArron Small Modified over 8 years ago
1
Object-Oriented Programming Nova Southeastern University Cristal Locke This presentation is copyrighted by Cristal Locke, December 12, 2002. All rights reserved.
2
Definition of Object Oriented Programming (OOP) Object-oriented programming combines structured programming techniques and sophisticated data structures. It offers developers the ability to combine data and processes (called methods) into one component called an object. In other words, an object contains everything required to perform a set of functions or behaviors, including data. Excerpt from Using Turbo C++ by David Linthicum and Larry Klein
3
Structured Programming vs Object- Oriented Programming (OOP)
4
Structured Programming In structured programming, programmers break the program into smaller programs called modules.
5
The main program calls the module and it does its job. The module may be programmed to call additional modules. Structured Programming
6
MModules may be shared by other modules. For example, one module’s job may be to change the color of the background. Many other modules (or little programs) may call upon this one module.
7
If one module has to be changed, all modules that call this one (including the main program) must be changed as well. Structured Programming
9
OOP does not require any breakdown of programs. It is a combination of structured programming and data structures. Object-Oriented Programming
10
Programmers combine small programs called methods and data into one component called an object.
11
Object-Oriented Programming AA class defines what the object is. For example, if the object is called “wallpaper,” the class tells the object what it means to be “wallpaper.” You are a dog. You have 4 legs, a tail, and you bark.
12
Object-Oriented Programming The methods tell the object what to do. For example, if the object called “wallpaper” is intended to change the color of the wallpaper, the method is what tells the object to change. Ok, Dog… Beg!
13
Object-Oriented Programming The programmer creates objects that can then be stored into a library. The library is accessed whenever the program needs to complete a routine.
14
Hello World Sample Codes
15
Structured Hello World (Pascal) program helloworld; begin writeln ( 'Hello World!' ); writeln ( 'This is my first Pascal program.' ); readln; end.
16
OOP Hello World (C++) #include int main() { std::cout << "Hello world!\n"; }
17
Brief History of Object- Oriented Programming
18
OOP 1960’s It all started with SIMULA and SIMULA 67, which came about in the 1960’s. Both languages used objects and classes.
19
OOP 1970’s Smalltalk was then introduced by Xerox in the 1970’s. It was developed using SIMULA’s format.
20
OOP 1980’s to Present In 1983, Bjarne Stroustrup, a member of the Information and Systems Software Research Lab at AT&T Bell Laboratories, developed C++, which is an extension of C Programming Language. C++ was C (a structured programming language) that uses classes.
21
1993, Microsoft released Visual C++ 1.0. This was an upgrade to C++ 7.0. After numerous upgrades, Visual C++ is now called Visual C++.net. In the early 1990’s, Sun developed Java, which solely uses objects and classes. OOP 1990’s to Present
22
Talking Programmers
23
Bibliography Linthicum, D. & Klein, L. (1994). Using turbo C++ (1 st ed.). Que; ASIN: 1565294718 Ross, J. & Zhang, H. (1997, October) Structured programmers learning object-oriented programming. SIGCHI. Retrieved December 7, 2002, from http://www.acm.org/sigchi/bulletin/1997.4/ross.h tml#HDR2 http://www.acm.org/sigchi/bulletin/1997.4/ross.h tml#HDR2 Dahl, O. & Nygaard, K. How object oriented programming started. Retrieved December 7, 2002, from http://www.ifi.uio.no/~kristen/FORSKNINGSDOK_ MAPPE/F_OO_start.html http://www.ifi.uio.no/~kristen/FORSKNINGSDOK_ MAPPE/F_OO_start.html
24
Contact Information Cristal Locke can be contacted through e-mail at beroncn@nova.edu or through beroncn@nova.edu http://tucker.dade.k12.fl.us/classrooms/Locke/gifte d.htm This tutorial was created on December 15, 2002.
25
Permissions Permission is hereby given to Nova Southeastern University students, who are taking WebCT courses, to use this presentation. Cristal Locke, December 15, 2002
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.