The Artima Developer Community
Sponsored Link

Design Forum
design for reuse

2 replies on 1 page. Most recent reply: Jan 31, 2018 10:16 PM by Sreekesh Kumar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
yasmeen zada

Posts: 1
Nickname: yasmeenz
Registered: Nov, 2012

design for reuse Posted: Nov 1, 2012 3:25 AM
Reply to this message Reply
Advertisement
I'm doing my study on how to improve my design"OOD".. to make it more reusable

I still don't know how to make the design self-contained. can this be visible in uml diagrams ?? or the self-contained component is a code-level concept


Keren Blau

Posts: 11
Nickname: kerenblau8
Registered: Jul, 2012

Re: design for reuse Posted: Oct 28, 2013 2:12 PM
Reply to this message Reply
@yasmeenz, I think by "self-contained", you mean the idea of Encapsulation, which is one of the hallmarks of OOP.

"Encapsulation refers to the creation of self-contained modules that bind processing functions to the data. These user-defined data types are called "classes," and one instance of a class is an "object." For example, in a payroll system, a class could be Manager, and Pat and Jan could be two instances (two objects) of the Manager class. Encapsulation ensures good code modularity, which keeps routines separate and less prone to conflict with each other."
(http://en.wikipedia.org/wiki/Object-oriented_programming)

Here are some Java resources you (or others) could find useful as you start out with this concept:

1) A simple tutorial, with really easy-to-grasp examples:
http://way2java.com/oops-concepts/java-encapsulation-abstraction-data-hiding-and-data-binding/

2) From an official Java site:
http://www.tutorialspoint.com/java/java_encapsulation.htm

3) 10 Object Oriented Design principles Java programmer should know
http://blog.jelastic.com/2013/02/25/10-object-oriented-design-principles-java-programmer-should-know-guest-post/

Sreekesh Kumar

Posts: 1
Nickname: sreekesh12
Registered: Feb, 2018

Re: design for reuse Posted: Jan 31, 2018 10:16 PM
Reply to this message Reply
Thanks for Proving the Link , It was really Helpful

Flat View: This topic has 2 replies on 1 page
Topic: lic health plan Previous Topic   Next Topic Topic: Architectural Design Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use