|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#51. Given: 1. class Super { 2. public int getLenght() { return 4; } 3. } 4. 5. public class Sub extends Super { 6. public long getLenght() { return 5; } 7. 8. public static void main (String[] args ) { 9. Super sooper = new Super(); 10. Sub sub = new Sub(); 12. sooper.getLenght() + “,” + sub.getLenght() ); 13. } 14. }
What is the output?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.245
|
Server date 06:07 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|