Ask Question
7 June, 23:56

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

+2
Answers (1)
  1. 8 June, 01:57
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers