SlideShare a Scribd company logo
1 of 19
1. Enumerations: A data type that has finite set of values.
Denoted by << >>
Eg: Suit: Spades, Clubs, hearts, diamonds
Rank: ace, king, queen, jack
2. Scope: it indicates if feature (operation) applies to an object or class
3. Visibility: Its comes from Inheritance
Its provide references (used from other classes)
Private: only methods of containing classes can access [~]
Public: Any method can freely access the features. [+]
Protected: only method of containing class and its Descendants
via inheritance can access. [#]
Visibility Issues:
Comprehension:
Extensibility:
Context:
Advanced concept: of Classes and Objects
Association End: its an end of association.
Properties:
1. Association End Names: it disambiguate the multiple
references
2. Multiplicity: 1 (Exactly one), 1..2 (at most two), * (zero or
more)
3. Ordering: allocates the โ€œmanyโ€ in specific order
4. Bags: collection of Elements which allow duplicates
5. Sequence: collection of sequenced Elements which allow
duplicates
6. Qualified attribute and Qualified association
7. Aggregation : collection of Constituent Parts (Eg: car parts)
8. Changeability: it specify the update of an association end.
(read/write)
9. Navigation: traversing via associations in either directions.
10. Visibility: provide info about uses of operations and
attributes
N-ary Associations
Binary association
1 * * 1
Ternary association
* *
* Programmer
Person Purchase Company
Project
Employe
e
Technolog
y
Semester
Courses
Textbook
N-ary association (More than Three)
Programming languages can not express the N-ary
associations hence need to promote in into classes
Professor
Departmen
t
Aggregation:
It is strong form of association in which aggregate
objects is made of Constituent Parts Eg: (Car is
constituent parts of various materials such as wheels, body,
engine, gears, breaks etc)
Aggregation vs Associations
Aggregation is a part of associations, its not the
independent part.
Aggregation: two objects are tightly bounded by a
partial-whole relationship.
Denoted By: small diamond indicates the assembly end
Association: two object usually independent and
often be linked.
CAR
Engine Wheel Stereo Gear Breaks
Diagram: Aggregation
Aggregation Vs Composition
A General form called aggregation where as More Restrictive from called
composition
Composition: it is a from of aggregation with additional constraints
1. A constituent parts can belongs to at most one assembly.
Company
Dept Employee Budget
Propagation of Operations: also called
Triggering
It is the automatic application of operations to a
networks of objects, when the operations is applied to
some starting object.
1 * 1 * 1 *
Open Read Copy
Abstract Classes
1. No direct instance (object)
2. Descendent classes can accesses.
3. Only Define the abstract method but not
implemented.
4. Provide common behavior which are necessary to
maintain the subclasses.
5. Concrete Class: who have direct Instance
Person File Paragraph Characters
MetaData: Itโ€™s a Data that describe the data (data about data)
1 Describe *
* *
1 Manufacturer 1 person
Reification:
Perception of an object as having more Spatial info than is actually present
โ€ข Is a making something Real
โ€ข Bringing something into being.
โ€ข Making something concrete.
Member
* 1โ€ฆ
Car Model Physical Car
Model Name
Year_Mf
Price
Engine No
Chassis No
Color
Company Person
Political Party MLA Name
MLA Name
MLA Name
MLA Name
Constraints: A constraints is a Boolean involving model elements
Something which regulate the Flow of Data/ Model/ Object/ behavior/ Functions etc
Boss
0-1
*
(Salary<Boss.Salary) (0.8<length/width<1.5) (Priority never increases)
Constraints on Generalization:
1. Disjoints: Each object belong to exactly only one subclasses
2. Overlapping: Object may belongs to more than one subclasses
3. Complete: Generalization lists all the possible subclasses
4. Incomplete: Generalization may be missing some subclasses
Constraints On Links:
* Member of *
1 P.M. *
Employee
Salary
Window
Length
Height
Job
Priority
M.P. Parliament
Use of Constraints:
Its provide the criteria for measuring the quality of a class model.
Constraints in declarative manner,
Constraints converted into Procedural form for implementing it into Prog. Languages.
Derived Data:
It is a function of one or more elements which turn may be derived.
An Data Elements which have to derived on other Data Elements (Eg: Age๏ƒŸ DOB)
Package:
A Package is a group of elements(Classes, associations, Generalizations,
lesser packages) with common themes or purpose.
It partition the model and making it easier to understand and manage
Package Name
Multiple Inheritance:
โ€ข It permits a class to have more than one superclass and allow inherit
features.
โ€ข We can mix the information from multiple sources
โ€ข It increases the power of reuse of code and features
โ€ข Disadvantages: loss of conceptual and implementation simplicity.
Project Manager
OnSite
Lead
OnSite
Developer
OffSide
Lead
OffSide
Developer
Client
Workaround:A method for overcoming a problem or
limitation in program or system.
It used a Restrictive concepts:
Delegation: which is implementation mechanism by which an
object is forwards an operation to another object for execution.
A. Delegation using Composition of Parts
B. Inherit most imp. Class and delegate the rest.
Fig: Workaround for multiple inheritance-Delegation
Employee
Employment Management
WorkerManager Manager Worker
Event: An Event is an occurrence at a point in time, such as user/
system activity or evoke of time.
An event happens instantaneously with regards the time scale of an
application.
Signal: A Signal is an Explicit one way transmission of
information from one object to another. Denoted by : <<>>
Signal Event: It is event of sending or receiving a signal.
Change Event: It is an event that is caused by the satisfaction
of Boolean expression.
Whenever there is change then an event is occur called Change
Event.
Time Event: A Event caused by occurrence of an absolute
time or the elapsed time interval.
States: A state is an abstraction of values and links of an
object. Or its it also called as gross behavior of objects.
Transition and conditions: A transition is an
instantaneous change from one state to another.
A transition is also called as Fire upon the changes from source
state to target state.
Guard condition: It is a Boolean expression that must be
true in order for a transition to occur.
i.e. if guard condition is true and event is occur, only then guarded
transition happen.
E.g: OTP at a time of banking transaction.
State Diagrams: It is a graph whose nodes are stats and
arcs are transitions between stats.
State Model: A state model consists of multiple state
diagram.
Continuous Loops- State Diagram
Idle
Disconnected
TimeOutDial Tone
Dialing
Connecting
Ringing
Connected
Warning
Recorded
Msg
Busy Tone
One Shot State Diagram:
Its represents finite lives and have initial and final states
White Turn
Black Turn
s
Start
White Win
Black Win
Draw
White
Moves
Black
Moves
Chess
1. State: Drawn as a ROUNDED BOX containing an optional
name
2. Transition: Drawn as a LINE from the origin state to target
state.
3. Event: A Signal Event is Shown as a LABLE on Transition
followed by (expression), A Change Event is shown with
keyword WHEN followed by (expression), and A Time Event is
shown by WHEN followed by (expression involving time) or
Keyword AFTER followed by (expression evaluate time
duration)
4. State Diagram: Enclosed into RECTANGULER FRAME with
the diagram name in a small PENTAGONAL TAG in the upper
left Conner.
5. Guard Condition: optionally listed in SQUARE BRACKETS
after an EVENT.
6. Effects: Shown by SLASH(/)
7. Entry Points: Shown by HOLLOW CIRCLES.
8. Exit Points: shown by CIRCLES enclosing with โ€˜Xโ€™
State Diagram Behavior:
An Effects: is reference to a behavior that is executed in response
to an event.
An Activity is the actual behavior that can be invoked by any
number of effects.
E.g: Right Click on Desktop open POP Up Window which offer
multiple activities (Refresh)
DO-Activity: An activity that continues for an extended time.
It occur within state only and cant not be attached to transition.
i.e. Do-Activity is not going to make any change in state and
happen within state only.
Completion transition: An arrow without an Event Name
indicates an automatic transition that fires when the activity
associated with the source state is completed, such unlabeled
transition called as Completion transition.
Sending Signals: When an activity send a SIGNAL (S) with
given ATTRIBUTES to the target Objects then its called Sending
Signals. Eg: โ€œsend target. S(attributes)โ€
Entry and Exit Activities: Activity may associated
with transition or within a state and specify Entry and
Exit.
Opening
(entry/motor
Up)
Closing
(entry/ motor
down
Open
(entry/ motor
off)
Closed
(entry/ motor
off)

More Related Content

What's hot

Complex Data Binding
Complex Data BindingComplex Data Binding
Complex Data Binding
Doncho Minkov
ย 
Ap Power Point Chpt4
Ap Power Point Chpt4Ap Power Point Chpt4
Ap Power Point Chpt4
dplunkett
ย 
Delegates and events
Delegates and eventsDelegates and events
Delegates and events
Iblesoft
ย 
Classes & objects new
Classes & objects newClasses & objects new
Classes & objects new
lykado0dles
ย 
Chapter 3.4
Chapter 3.4Chapter 3.4
Chapter 3.4
sotlsoc
ย 
Java cฤƒn bแบฃn - Chapter4
Java cฤƒn bแบฃn - Chapter4Java cฤƒn bแบฃn - Chapter4
Java cฤƒn bแบฃn - Chapter4
Vince Vo
ย 

What's hot (20)

Visual Basic User Interface -IV
Visual Basic User Interface -IVVisual Basic User Interface -IV
Visual Basic User Interface -IV
ย 
Java unit 7
Java unit 7Java unit 7
Java unit 7
ย 
Complex Data Binding
Complex Data BindingComplex Data Binding
Complex Data Binding
ย 
Java interface
Java interfaceJava interface
Java interface
ย 
Ap Power Point Chpt4
Ap Power Point Chpt4Ap Power Point Chpt4
Ap Power Point Chpt4
ย 
11 Using classes and objects
11 Using classes and objects11 Using classes and objects
11 Using classes and objects
ย 
Chain of Responsibility Pattern
Chain of Responsibility PatternChain of Responsibility Pattern
Chain of Responsibility Pattern
ย 
Lecture 8 abstract class and interface
Lecture   8 abstract class and interfaceLecture   8 abstract class and interface
Lecture 8 abstract class and interface
ย 
Constructors and Method Overloading
Constructors and Method OverloadingConstructors and Method Overloading
Constructors and Method Overloading
ย 
Intake 37 5
Intake 37 5Intake 37 5
Intake 37 5
ย 
C# interview
C# interviewC# interview
C# interview
ย 
Lecture 9 access modifiers and packages
Lecture   9 access modifiers and packagesLecture   9 access modifiers and packages
Lecture 9 access modifiers and packages
ย 
encapsulation, inheritance, overriding, overloading
encapsulation, inheritance, overriding, overloadingencapsulation, inheritance, overriding, overloading
encapsulation, inheritance, overriding, overloading
ย 
Delegates and events
Delegates and eventsDelegates and events
Delegates and events
ย 
Classes & objects new
Classes & objects newClasses & objects new
Classes & objects new
ย 
Java Programming Paradigms Chapter 1
Java Programming Paradigms Chapter 1 Java Programming Paradigms Chapter 1
Java Programming Paradigms Chapter 1
ย 
Java class
Java classJava class
Java class
ย 
Delegates and events
Delegates and events   Delegates and events
Delegates and events
ย 
Chapter 3.4
Chapter 3.4Chapter 3.4
Chapter 3.4
ย 
Java cฤƒn bแบฃn - Chapter4
Java cฤƒn bแบฃn - Chapter4Java cฤƒn bแบฃn - Chapter4
Java cฤƒn bแบฃn - Chapter4
ย 

Similar to Unit two concept of classes and objects

M03 1 Structuraldiagrams
M03 1 StructuraldiagramsM03 1 Structuraldiagrams
M03 1 Structuraldiagrams
Dang Tuan
ย 
Use Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.pptUse Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.ppt
manishchoudhary91861
ย 
Ch 1 Introduction to Object Oriented Programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptxCh 1 Introduction to Object Oriented Programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
ย 

Similar to Unit two concept of classes and objects (20)

M03 1 Structuraldiagrams
M03 1 StructuraldiagramsM03 1 Structuraldiagrams
M03 1 Structuraldiagrams
ย 
M03_1_Structur alDiagrams.ppt
M03_1_Structur                         alDiagrams.pptM03_1_Structur                         alDiagrams.ppt
M03_1_Structur alDiagrams.ppt
ย 
Ooad notes
Ooad notesOoad notes
Ooad notes
ย 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)
ย 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
ย 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
ย 
MCA NOTES.pdf
MCA NOTES.pdfMCA NOTES.pdf
MCA NOTES.pdf
ย 
Use Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.pptUse Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.ppt
ย 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
ย 
Oop2011 actor presentation_stal
Oop2011 actor presentation_stalOop2011 actor presentation_stal
Oop2011 actor presentation_stal
ย 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
ย 
Synapseindia strcture of dotnet development part 1
Synapseindia strcture of dotnet development part 1Synapseindia strcture of dotnet development part 1
Synapseindia strcture of dotnet development part 1
ย 
JAVA design patterns and Basic OOp concepts
JAVA design patterns and Basic OOp conceptsJAVA design patterns and Basic OOp concepts
JAVA design patterns and Basic OOp concepts
ย 
Ch 1 Introduction to Object Oriented Programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptxCh 1 Introduction to Object Oriented Programming.pptx
Ch 1 Introduction to Object Oriented Programming.pptx
ย 
Advance oops concepts
Advance oops conceptsAdvance oops concepts
Advance oops concepts
ย 
Matters of State
Matters of StateMatters of State
Matters of State
ย 
SE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and DesignSE_Lec 06_Object Oriented Analysis and Design
SE_Lec 06_Object Oriented Analysis and Design
ย 
Oops
OopsOops
Oops
ย 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
ย 
SE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and DesignSE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and Design
ย 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
sivaprakash250
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
ย 

Recently uploaded (20)

Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
ย 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
ย 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
ย 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
ย 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
ย 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
ย 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ย 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
ย 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
ย 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 

Unit two concept of classes and objects

  • 1. 1. Enumerations: A data type that has finite set of values. Denoted by << >> Eg: Suit: Spades, Clubs, hearts, diamonds Rank: ace, king, queen, jack 2. Scope: it indicates if feature (operation) applies to an object or class 3. Visibility: Its comes from Inheritance Its provide references (used from other classes) Private: only methods of containing classes can access [~] Public: Any method can freely access the features. [+] Protected: only method of containing class and its Descendants via inheritance can access. [#] Visibility Issues: Comprehension: Extensibility: Context: Advanced concept: of Classes and Objects
  • 2. Association End: its an end of association. Properties: 1. Association End Names: it disambiguate the multiple references 2. Multiplicity: 1 (Exactly one), 1..2 (at most two), * (zero or more) 3. Ordering: allocates the โ€œmanyโ€ in specific order 4. Bags: collection of Elements which allow duplicates 5. Sequence: collection of sequenced Elements which allow duplicates 6. Qualified attribute and Qualified association 7. Aggregation : collection of Constituent Parts (Eg: car parts) 8. Changeability: it specify the update of an association end. (read/write) 9. Navigation: traversing via associations in either directions. 10. Visibility: provide info about uses of operations and attributes
  • 3. N-ary Associations Binary association 1 * * 1 Ternary association * * * Programmer Person Purchase Company Project Employe e Technolog y
  • 4. Semester Courses Textbook N-ary association (More than Three) Programming languages can not express the N-ary associations hence need to promote in into classes Professor Departmen t
  • 5. Aggregation: It is strong form of association in which aggregate objects is made of Constituent Parts Eg: (Car is constituent parts of various materials such as wheels, body, engine, gears, breaks etc) Aggregation vs Associations Aggregation is a part of associations, its not the independent part. Aggregation: two objects are tightly bounded by a partial-whole relationship. Denoted By: small diamond indicates the assembly end Association: two object usually independent and often be linked.
  • 6. CAR Engine Wheel Stereo Gear Breaks Diagram: Aggregation Aggregation Vs Composition A General form called aggregation where as More Restrictive from called composition Composition: it is a from of aggregation with additional constraints 1. A constituent parts can belongs to at most one assembly. Company Dept Employee Budget
  • 7. Propagation of Operations: also called Triggering It is the automatic application of operations to a networks of objects, when the operations is applied to some starting object. 1 * 1 * 1 * Open Read Copy Abstract Classes 1. No direct instance (object) 2. Descendent classes can accesses. 3. Only Define the abstract method but not implemented. 4. Provide common behavior which are necessary to maintain the subclasses. 5. Concrete Class: who have direct Instance Person File Paragraph Characters
  • 8. MetaData: Itโ€™s a Data that describe the data (data about data) 1 Describe * * * 1 Manufacturer 1 person Reification: Perception of an object as having more Spatial info than is actually present โ€ข Is a making something Real โ€ข Bringing something into being. โ€ข Making something concrete. Member * 1โ€ฆ Car Model Physical Car Model Name Year_Mf Price Engine No Chassis No Color Company Person Political Party MLA Name MLA Name MLA Name MLA Name
  • 9. Constraints: A constraints is a Boolean involving model elements Something which regulate the Flow of Data/ Model/ Object/ behavior/ Functions etc Boss 0-1 * (Salary<Boss.Salary) (0.8<length/width<1.5) (Priority never increases) Constraints on Generalization: 1. Disjoints: Each object belong to exactly only one subclasses 2. Overlapping: Object may belongs to more than one subclasses 3. Complete: Generalization lists all the possible subclasses 4. Incomplete: Generalization may be missing some subclasses Constraints On Links: * Member of * 1 P.M. * Employee Salary Window Length Height Job Priority M.P. Parliament
  • 10. Use of Constraints: Its provide the criteria for measuring the quality of a class model. Constraints in declarative manner, Constraints converted into Procedural form for implementing it into Prog. Languages. Derived Data: It is a function of one or more elements which turn may be derived. An Data Elements which have to derived on other Data Elements (Eg: Age๏ƒŸ DOB) Package: A Package is a group of elements(Classes, associations, Generalizations, lesser packages) with common themes or purpose. It partition the model and making it easier to understand and manage Package Name
  • 11. Multiple Inheritance: โ€ข It permits a class to have more than one superclass and allow inherit features. โ€ข We can mix the information from multiple sources โ€ข It increases the power of reuse of code and features โ€ข Disadvantages: loss of conceptual and implementation simplicity. Project Manager OnSite Lead OnSite Developer OffSide Lead OffSide Developer Client
  • 12. Workaround:A method for overcoming a problem or limitation in program or system. It used a Restrictive concepts: Delegation: which is implementation mechanism by which an object is forwards an operation to another object for execution. A. Delegation using Composition of Parts B. Inherit most imp. Class and delegate the rest. Fig: Workaround for multiple inheritance-Delegation Employee Employment Management WorkerManager Manager Worker
  • 13. Event: An Event is an occurrence at a point in time, such as user/ system activity or evoke of time. An event happens instantaneously with regards the time scale of an application. Signal: A Signal is an Explicit one way transmission of information from one object to another. Denoted by : <<>> Signal Event: It is event of sending or receiving a signal. Change Event: It is an event that is caused by the satisfaction of Boolean expression. Whenever there is change then an event is occur called Change Event. Time Event: A Event caused by occurrence of an absolute time or the elapsed time interval.
  • 14. States: A state is an abstraction of values and links of an object. Or its it also called as gross behavior of objects. Transition and conditions: A transition is an instantaneous change from one state to another. A transition is also called as Fire upon the changes from source state to target state. Guard condition: It is a Boolean expression that must be true in order for a transition to occur. i.e. if guard condition is true and event is occur, only then guarded transition happen. E.g: OTP at a time of banking transaction. State Diagrams: It is a graph whose nodes are stats and arcs are transitions between stats. State Model: A state model consists of multiple state diagram.
  • 15. Continuous Loops- State Diagram Idle Disconnected TimeOutDial Tone Dialing Connecting Ringing Connected Warning Recorded Msg Busy Tone
  • 16. One Shot State Diagram: Its represents finite lives and have initial and final states White Turn Black Turn s Start White Win Black Win Draw White Moves Black Moves Chess
  • 17. 1. State: Drawn as a ROUNDED BOX containing an optional name 2. Transition: Drawn as a LINE from the origin state to target state. 3. Event: A Signal Event is Shown as a LABLE on Transition followed by (expression), A Change Event is shown with keyword WHEN followed by (expression), and A Time Event is shown by WHEN followed by (expression involving time) or Keyword AFTER followed by (expression evaluate time duration) 4. State Diagram: Enclosed into RECTANGULER FRAME with the diagram name in a small PENTAGONAL TAG in the upper left Conner. 5. Guard Condition: optionally listed in SQUARE BRACKETS after an EVENT. 6. Effects: Shown by SLASH(/) 7. Entry Points: Shown by HOLLOW CIRCLES. 8. Exit Points: shown by CIRCLES enclosing with โ€˜Xโ€™
  • 18. State Diagram Behavior: An Effects: is reference to a behavior that is executed in response to an event. An Activity is the actual behavior that can be invoked by any number of effects. E.g: Right Click on Desktop open POP Up Window which offer multiple activities (Refresh) DO-Activity: An activity that continues for an extended time. It occur within state only and cant not be attached to transition. i.e. Do-Activity is not going to make any change in state and happen within state only. Completion transition: An arrow without an Event Name indicates an automatic transition that fires when the activity associated with the source state is completed, such unlabeled transition called as Completion transition.
  • 19. Sending Signals: When an activity send a SIGNAL (S) with given ATTRIBUTES to the target Objects then its called Sending Signals. Eg: โ€œsend target. S(attributes)โ€ Entry and Exit Activities: Activity may associated with transition or within a state and specify Entry and Exit. Opening (entry/motor Up) Closing (entry/ motor down Open (entry/ motor off) Closed (entry/ motor off)