Download presentation
Presentation is loading. Please wait.
1
Introduction to Object-Oriented Programming
Bayu Priyambadha, S.Kom
2
OOP Vs. Procedural Commonly used programming methodologies are :
Procedural Programming Object-Oriented Programming
3
Procedural Programming (1)
Involves dividing a large program into a set of subprocedures or subprograms that perform specific tasks. Module consists of single or multiple procedures. Procedures are also known as functions, routines, subroutines, or methods in various programming languages. In a program following procedural methodology, each step of a subprogram is linked to the previous step. Most of the data is shared as global that can be accessed from anywhere within the program.
4
Procedural Programming (2)
5
Object-Oriented Programming (1)
The two most important concepts in object-oriented programming are the class and the object Object is a thing Object is tangible and intangible that we can imagine Object-Oriented Programming consist of interacting objects
6
Object-Oriented Programming (2)
Class is template that the computer used to create object Object is called an instance of a class Objects is belongs to a class
7
OOP in the Case of Banking
There are many objects, such as : Account Customer Transaction ATM, etc. < class name > < object name > < class name>
8
Shows an instance-of relationship
Classes and Objects (1) < Account> Shows an instance-of relationship Jojo Jeje Jaja Account Account Account
9
Classes and Objects (2) Every object comprised of data and operations (methods) < class name > < object name > < class name >
10
Messages and Methods Object -> accomplish tasks (run the method)
Send a message to the object Object must understand the message Method : Return value No return value Jeje Customer argument deposit deposit
11
Class and Instance Data Values (1)
Data Values for instance class (object) Class Data Values Data Values for class < object name > < class name> Instance Data Values < Customer > Class Data Values
12
Class and Instance Data Values (2)
< Account > Minimum Balance 50.000 Jojo Jeje Jaja Account Current balance Account Current balance Account Current balance
13
Advantages of Object-Oriented Programming
simplicity modularity modifiability extensibility maintainability re-usability
14
Thanks...
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.