Ask Question
24 December, 00:43

Instance data for a Java class Group of answer choices are limited to primitive types (e. g., int, float, char) are limited to Strings are limited to objects (e. g., Strings, classes defined by other programmers) may be primitive types or objects, but objects must be defined to be private may be primitive types or objects

+1
Answers (1)
  1. 24 December, 02:10
    0
    Question

    Instance data for a Java class

    a. Are limited to primitive types (e. g., int, float, char)

    b. Are limited to Strings

    c. Ae limited to objects (e. g., Strings, classes defined by other programmers)

    d. May be primitive types or objects, but objects must be defined to be private

    e. May be primitive types or objects

    Answer:

    e. Instance data for a Java class may be primitive types or objects.

    Explanation:

    Instance data are defined as those entities that make up the class.

    Instances may be of any available data type, whether it is primitive or it is an object.

    Instances may also be public and they may be private.

    By using objects as instance data, it permits the class to be built upon other classes. This relationship where a class has instance data that are other classes is known as a has a relationship.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Instance data for a Java class Group of answer choices are limited to primitive types (e. g., int, float, char) are limited to Strings are ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers