InterviewSolution
Saved Bookmarks
| 1. |
Consider the following class: public class myClass { public static int x=3, y=4; public int q=2, b=3;} (i) Name the variables for which each object of the class will have its own distinct copy. (ii) Name the variables that are common to all objects of the class. |
|
Answer» (i) ‘a’ and ‘b’. (ii) ‘x’ and ‘y’. |
|