You are on page 1of 7

Objects

&
Data Structures
Let’s
G00D Get Started!
Morning!
Saleh Milhan
Joardar
Shakib Aumi

18.02.04 18.02.04.
.060 059
2
Topics to be discussed
✘ Objects & Data Structures
✘ Data / Object Anti-Symmetry
✘ The Law of Demeter
✘ Data Transfer Object (DTO)
✘ Conclusion

3
Objects & Data Structures Data / Object Anti-Symmetry
✘ An allocated region of storage. ✘ Hide their data behind
An object is sometimes called a abstractions and expose functions
member. that operate on that data.
✘ A data organization, management, ✘ Expose their data and have no
and storage format that meaningful functions.
enables efficient access and
modification.

4
The Law of Demeter Data Transfer Object (DTO)
✘ Principle of least knowledge. ✘ Is an object that carries data between
✘ Design guideline for developing processes.
software. ✘ A quintessential form of a data
✘ A module should not know about structure.
the innards of the objects it ✘ A class with public variables and no
manipulates. functions.
✘ Talk to friends, not to strangers. ✘ Very useful structures, especially when
communicating with databases or
parsing messages from sockets.

5
Conclusion
✘ Objects expose behavior and hide data.
✘ Makes it easy to add new kinds of objects without changing existing
behaviors.
✘ Makes it hard to add new behaviors to existing objects.
✘ Expose data and have no significant behavior.
✘ Makes it easy to add new behaviors to existing.
✘ Makes it hard to add new data structures to existing functions.
✘ Make their own decision.

6
THANKS!
HAVE A GOOD
DAY!
Any questions?

You might also like