One difference between objects and data types is that it is usually not meaningful to compare the identities of separate instances of data t

Question

One difference between objects and data types is that it is usually not meaningful to compare the identities of separate instances of data types, but for objects it is valuable to compare separate object identities. Group of answer choices

in progress 0
RI SƠ 1 year 2021-09-03T02:51:45+00:00 1 Answers 66 views 0

Answers ( )

    0
    2021-09-03T02:53:39+00:00

    Answer and explanation:

    Question isn’t complete but explanation is given below based on what you may be asking.

    Answer and Explanation:

    First, An object is a data type but is quite different from the usual or primitive data types such as string or integers. An object is based on object oriented programming(OOP) and is a sort of abstract data type which is usually defined by the programmer(some are inbuilt in the language). Objects are usually defined using classes and then become instances of those classes. Objects have identities(e.g- a dog has a name Zeus) and be compared to other objects of same class(other instances) while data types are not as well equipped to have identities, properties or methods that are user defined in order to make comparisons.

Leave an answer

Browse

Giải phương trình 1 ẩn: x + 2 - 2(x + 1) = -x . Hỏi x = ? ( )