CSCI 1302 Test Cram Study

Descrição

for my class duhhh
marc30599 .
FlashCards por marc30599 ., atualizado more than 1 year ago
marc30599 .
Criado por marc30599 . quase 6 anos atrás
21
0

Resumo de Recurso

Questão Responda
When a reference variable is passed as an argument to a method. The method has access to the object that the variable references.
When 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.
To compare two objects in a class... you must write an equals method that will make a field-by-field comparison of the two objects
If '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
What 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.

Semelhante

2. Red Black Tree
Mena Sargios
0. AVL Tree Visualization
Mena Sargios
12. Graph Traversal
Mena Sargios
5. B-Tree
Mena Sargios
7. Algorithm Growth Rate
Mena Sargios
3. 2-3 Tree
Mena Sargios
16. Greedy Algorithm (Huffman code)
Mena Sargios
4. 2-3-4 Tree
Mena Sargios
1. Trees Splay Trees
Mena Sargios
14. Graph Shrtest Path
Mena Sargios
10. Hashing Collision
Mena Sargios