Ask 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 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. 31 August, 11:01
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers