152 Internet of Things
OBJECT DIAGRAM
In software development, Classes are known as abstract data types. On the other hand, the
objects are instances of the abstract class. Example: If we own a class “bike” which is a generic
abstract type, particular of the class “bike” would be a “Suzuki”. An Object diagram is helpful
in showing the software developer generic abstract structure that has established, and portrays
a feasible structure when putting into real use. This takes places when the objects of a class are
instantiated. Below is an Object UML diagram based on the class diagram we have explained
before.
Rahul:Client
name="Rahul"
PAN = "AAAPL1234C"
employment = "student"
address = "Parliament Street NEW DELHI"
Student Savings: Saving Account
type = "Student Savings"
owner = "Rahul"
account_number = "78945461546"
ifsc_code = "32422345"
balance = 140.67
withdrawal_limit = 500
ifsc_code = "1234561325"
balance = 875.69
rate = 0.1 5%
Student Current: Current Account
type = "Student Current"
owner = "Rahul"
account_number = "83742676112"
This diagram shows us the instances (objects) we had established earlier. To add further
precision to the interpretation, the general class “Client” now consists of actual client known as
Rahul”. Rahul is a detail of the more generic class and it is having the same attributes, however,
with provided values. The same stu has been done with Savings and Current account. Both of
them are objects of their corresponding classes.
Internet_of_Things_CH06_pp141-170.indd 152 9/3/2019 10:14:19 AM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.71.146