These are flashcards an notes made by students on topics like 'identity', 'identical' and 'books', originating from:

- Michael Jesse Chonoles
ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
  • This + 400k other summaries, also in PDF!
  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo

Study Cards on identity, identical, books

Sometimes, there is confusion about whether something is a class or a dataType. They are both types, but they do behave differently.

What is the major difference?

The major difference being IDENTITY.
Report
How do we know that it is a class?
Imagine having two identical books, with all their attributes being the same; we would still say that we have two books. This one, and that one.

We say that objects/class instances have their own inherent identity.


If we had the two identical books and compared them, we would still say that they are different books


Report
How do we know it is a dataType?
With dataTypes, the identity resides (zit /woont?)  in the value.


Two copyright years with the same value are the same, because their values are the same.


If we compare two identical copyright years, we would say they are the same year.



Two items with the same cost have identical costs, but the changing one of the costs does not change the other cost.

Their identity was contingent (toevallig) and not inherent.
Report
  • Higher grades + faster learning
  • Don't study anything twice
  • 100% sure, 100% understanding
Discover Study Smart