Skip to main content
Commonmark migration
Source Link

When defining which variables form an object's state, we want to consider only the data that object owns....

 

In many case, ownership and encapsulation go together— the object encapsulates the state it owns and owns the state it encapsulates....

 

A class usually does not own the objects passed to its methods or constructors, unless the method is designed to explicitly transfer ownership of objects passed in (such as the synchronized collection wrapper factory methods)...

When defining which variables form an object's state, we want to consider only the data that object owns....

 

In many case, ownership and encapsulation go together— the object encapsulates the state it owns and owns the state it encapsulates....

 

A class usually does not own the objects passed to its methods or constructors, unless the method is designed to explicitly transfer ownership of objects passed in (such as the synchronized collection wrapper factory methods)...

When defining which variables form an object's state, we want to consider only the data that object owns....

In many case, ownership and encapsulation go together— the object encapsulates the state it owns and owns the state it encapsulates....

A class usually does not own the objects passed to its methods or constructors, unless the method is designed to explicitly transfer ownership of objects passed in (such as the synchronized collection wrapper factory methods)...

edited title
Link
user1787812
  • 769
  • 7
  • 16

State ownership cover everything fofor a class to be thread safe

edited title
Link
user1787812
  • 769
  • 7
  • 16

State ownership cover everything fo a class to be Threadthread safe

added 101 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 9 characters in body; edited title
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 2248 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 2 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 56 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
edited title
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
edited title
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
edited title
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 19 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 34 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
added 18 characters in body
Source Link
user1787812
  • 769
  • 7
  • 16
Loading
Source Link
user1787812
  • 769
  • 7
  • 16
Loading