![]() |
About return type in JAVA
*I m doing some problems regarding Return type in java.I m facing some problem . could any help plz.* 1. class Plant { 2. String getName() { return "plant"; } 3. Plant getType() { return this; } *// what mean 'return this' here * 4. } 5. class Flower extends Plant { 6. // insert code...
|
| All times are GMT -4. The time now is 09:53 AM. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.