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.
- Become CIW Master CIW Enterprise Developer certified.
- Get certified in first attempt download scbcd - SCBCD simulation.
- Become SUN SCDJWS certified.
- Download practice question and study guide for scjp for exam.
- Download free practice test for SUN SCJP 5/6 exam.
- Download practice question and study guide for scmad for exam.
- Click here to get free scwcd SCWCD exam practice questions.
- Best exam simulation SUN CX310-055 download free trial.
- Download free practice test for CX310-056 SCJP 5.0 Java Upgrade exam.
- Download free practice test for SUN SCJP 6.0 exam.
- Download free practice test for CX310-066 SCJP Upgrade exam.
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.
