Escolar Documentos
Profissional Documentos
Cultura Documentos
Programming
Introduction:
Programming Methods
1.Procedural Programming
- uses “procedures” to describe
solutions. (structured prog’g.)
2. Functional Programming
- uses “functions” to describe
solutions. (declarative prog’g.)
Programming Methods
3. Logic Programming
- describe solutions with
“an aggregate of declarations”
- composed of logic expressions
and inference mechanism of the
base – constituting logic system.
4. Object-Oriented Programming
- describe solutions with states
of objects and their behavior.
Object-Oriented Programming
- programming that focuses on
independent objects and their
relationships to other objects, rather
than using a top-down, linear
approach.
Interactions within an Object –
Oriented System
Object Object
2 3
Bottom-up Approach
b) Object : Student
School System:
class : student
attributes : idno, name, address,
course, year, etc.
Banking System:
class : depositor
attributes : acctno, name, address,
interest rate, etc.
Important Concepts :
Object Example
Important Concepts :
Super Class
– a class at a higher level of
abstraction.
Super Class
Name Driver
Dept DL Number
Date Hired Type of Vehicles
Expiry Dates
General
Sub Class
Important Concepts :
0..*
1..* - one or more
0..* - zero or more
(others: 0..1, 1, n, 0..n, 1..n)
8. Message Passing
9. Polymorphism
10. Inheritance