Answer the question
In order to leave comments, you need to log in
What does the term "primitive object" mean?
While reading the gang of four book on design patterns, I came across such a concept as a "primitive object" in the following context (p. 163):
PS I mean that this concept means the following: a primitive object is an object that has no children (is a leaf in tree structure).
What does this concept mean? When answering, I want to see the definition of this phrase using a link to the book in which this definition is given, because without a source, it is impossible to operate with this concept in the future.
Answer the question
In order to leave comments, you need to log in
https://engageinteractive.co.uk/blog/5-modern-snow...
https://codepen.io/massiebn/pen/vmkwJ
moving snowflakes on the background of the site
Good afternoon!
There is no concept of a primitive object in java. There is a primitive data type and there is also a reference data type. The GoF book is generalized about OOP patterns, not specifically about Java patterns.
However, in Java, according to JEP, this is considered.
I think this link will be useful for you:
https://openjdk.java.net/jeps/401
Primitive objects and classes That is, a primitive object does not have a fixed memory address or any other property to distinguish it from other instances of the same class whose fields store the same values. Primitive objects cannot mutate their fields or be used for synchronization. The == operator on primitive objects compares their fields. Concrete classes whose instances are primitive objects are called primitive classes.
In this case, the "primitive object" is the "primitive graphics object" referred to above.
And they are primitive, as opposed to a complex Picture, which can contain many primitive objects.
No hidden meaning, no definitions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question