|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#40. Exhibit: 1. class super ( 2. public int I = 0; 3. 4. public super (string text) ( 5. I = 1 6. ) 7. ) 8. 9. public class sub extends super ( 10. public sub (string text) ( 11. i= 2 12. ) 13. 14. public static void main (straing args[]) ( 15. sub sub = new sub (“Hello”); 16. system.out. PrintIn(sub.i); 17. ) 18. )
What is the result?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.169
|
Server date 05:53 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|