110k views
5 votes
One way to write reusable code is to use the object data type for instance data members. Doing so then requires ____.

1 Answer

1 vote

Answer:

The answer is "Creating generic classes".

Step-by-step explanation:

This class statement looks like a non-generic class declaration, but that a type-parameter section specifies a class name. For the generic function, more than one type of parameter is separated through commas in the form parameter portion of the generic class.

  • It allows for the description of classes, interfaces, and methodologies in types (classes and interfaces).
  • Through using generic versions, developers can create a generic algorithm, that can be personalized and easily readable for sets of different types.

User Rlinden
by
4.2k points