Legal Return Types

Legal Return Types

This objective covers two aspects of return types : 
  1. What we can declare as a return type, and
  2. What we can actually return as a value.

It all depends on whether we are overriding an inherited method or simply declaring a new method.We will cover a small bit of new ground, though, when we look at polymorphic return types and the rules for what is and is not legal to actually return.

By:UMANG
Date:2004-03-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 chap6 Links

scjp1.5 chap6 interview questions and answers for experienced and fresher