9.0k views
1 vote
Suppose I create a new kind of Java object, called "Kangaroo". Further suppose that at any given time, all instances of this new object type have some facts associated with them. These include the Kangaroo's location, stomach capacity, and current attitude towards pea soup. What is another name for these facts?

User Delaye
by
7.3k points

1 Answer

3 votes

Full question:

Suppose I create a new kind of Java object, called "Kangaroo". Further suppose that at any given time, all instances of this new object type have some facts associated with them. These include the Kangaroo's location, stomach capacity, and current attitude towards pea soup. What is another name for these facts?

a) Object parts

b) Attributes

c) Parameters

d) Associations

Answer:

Attributes is another name for these facts

Step-by-step explanation:

An attribute is a feature, characteristic or trait given to an object. An attribute is an identifying characteristic of a data element, which may comprise but not restricted to data type, location, length, etc. An attribute manages certain perspectives of an element.

Attributes are produced up of a name and value pair. It’s typically a public field that can be reached directly. When you consider in a kind of object, you have to define what kind of attributes, features, or properties that kind of objects have. Here kangaroo is an object and those facts are the attributes of the object.

User Geschema
by
6.7k points