Suppose you are writing a method getChildren( ) in a Person class that returns an array of Persons. Then, among other things, you need to deal with the case where the person on whom the method is...


Suppose you are writing a method getChildren( ) in a Person class that returns an array of Persons. Then, among other things, you need to deal with the case where the person on whom the method is invoked has no children. What should your method return in that case? Should it return null or an array of length 0?

Nov 13, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here