What is return type object?

User-defined functions and class methods can define return types as object references (as class or interface types). When an object is passed locally, class instances are always returned by reference. Thus, only a reference to an object is returned, not the object itself.

Sizin İçin Seçtik  How do you return an object in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *