¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

CSCI 1302 Test Cram Study

marc30599 . Inglés 5 fichas

Fichas del conjunto (5)

  1. 1When a reference variable is passed as an argument to a method.The method has access to the object that the variable references.
  2. 2When a method's return type is a class, what is actually returned to the calling program?It is a reference to the an object of that class.
  3. 3To compare two objects in a class...you must write an equals method that will make a field-by-field comparison of the two objects
  4. 4If 'object1' and 'object2', are objects of the same class, to make object2 a copy of object1:You would write a copy method that will make a field by field copy of object1's data members into object2's data members
  5. 5What is a constructor and how does it differ from a copy constructor?A constructor initializes an object while a copy constructor has a parameter whos data type is the same as the class.

Información

Descripción
for my class duhhh
Creado por
marc30599 .
Visitas
27
Etiquetas
csci
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?