Escolar Documentos
Profissional Documentos
Cultura Documentos
OOPs concepts. Java Language Fundamentals AWT and Swings. Multi Threading I/O and File handling Collection API Socket Programming Applets Introduction to JDBC and RMI JavaBeans
List of Books
Name of the book Core Java (vol I & II) Author Horstmann & Cornell
Beginning Java 2
Complete Reference
Java Programming
List of Books
Name of the book
Java-How to program
Author
Dietal & Dietal
Symon Roberts
Object oriented approach helps to handle the complexity of software development and aids in generation of adaptable and Extensible Systems
Structured Method
Data
Object Object
Object
Object
7
- The architecture
What is an Object ?
An object is an entity that has well defined structure and behavior Characteristics of an object State Behavior Identity Responsibility
State of an Object
The state of an object encompasses the current values of all its attributes. An attribute can be static or dynamic
10
State of an Object
Car Attributes Color Average Make Power Fuel type Speed Fuel level Tyre pressure Gear
Static
Dynamic
Values of all attributes at any moment defines the state of the car
11
Behavior of an Object
Behavior is how an object acts or reacts, in terms of its state changes and operations performed upon it
12
Behavior of an Object
Window Operations
sasaasasasasasasas
Totality of operations we can perform upon a window and consequent changes in attributes defines behavior of a window
13
Identity of an Object
Identity is that property of an object which distinguishes it from all other objects
14
Identity of an Object
Bank Account
Balance Interest Rate Account Number Customer
IDENTITY
Account number uniquely identifies an account among all others. A single or group of attributes can be identity of an object.
15
Responsibility of an Object
The responsibility of an object is the role it serves within the system
16
Balance
Interest rate Account number
Open Balance
Balance= 10000
17
Examples of Objects
Air Bank Account
Hard Disk
Pen Person
Contract
Signal Industrial Process
Printer
Color
Medical Investigation
Transaction
Class
Class is a template that decides the structure of an object. Class is a design whereas object is a real entity based on the class.
19
Object Model
5 Major Pillars
Abstraction
Encapsulation Modularity
Inheritance
Polymorphism
20
Abstraction is the process of identifying the key aspects of an entity and ignoring the rest
We select only those aspects which are important to us Only Domain Expertise can do right abstraction
21
Object Model
Abstraction of a person object
Enumerate attributes of a person object that needs to be created for developing a database
useful for social survey useful for health care industry useful for employment information
22
Object Model
Real World Abstraction Software
attributes
entity
{ data, data,.}
object
behavior
{ method, method,.}
24
25
26
27
28
Inheritance hierarchy
Vehicle
2 Wheeler
3 Wheeler
4 Wheeler
Kinetic
Scooter
29
Inheritance
Is a kind of Hierarchy Generalization and specialization are two points of view that are based on the class hierarchies. They express the direction in which the class hierarchy is extended.
30
Containment hierarchy
Car
Engine
Chassis
Steering Wheel
31
Containment hierarchy
Engine
dsa
Insurance
gdfg
Wheels
Registration
32
Polymorphism helps us to :
Design extensible software as we can add new objects to the design without rewriting existing procedures
33
Polymorphism
Move ( ) Move ( )
Move ( )
Move ( )
34