A covariant return allows a class to override the return type of a method it inherits from a super class. Using the covariant return feature, a method in a subclass may return an object whose type is a subclass of the type returned by the method with the same signature in the superclass. This means that the return type of the subclass’ method should be the subclass of the return type of the superclass’ method.
- Get certified in first attempt download master-ciw-enterprise-developer - Master CIW Enterprise Developer simulation.
- Download practice question and study guide for scbcd for exam.
- Pass SUN scdjws - SCDJWS
- Click here to get free scjp SCJP exam practice questions.
- Download free practice test for scjp-5-0 SCJP 5/6 exam.
- Download practice question and study guide for scmad for exam.
- Pass SCWCD in first attampt.
- Get certified in first attempt download CX310-055 - Java 5.0 simulation.
- Pass SCJP 5.0 Java Upgrade in first attampt.
- Click here to get free CX310-065 SCJP 6.0 exam practice questions.
- Click here to download CX310-066 test study guide and practice question.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.