Consider the following declarations:
a. How many members does class XClass have?
b. How many private members does class XClass have?
c. How many constructors does class XClass have?
d. Write the definition of the member func so that u is set to 10 and w is set to 15.3.
e. Write the definition of the member print that prints the contents of u and w.
f. Write the definition of the default constructor of the class XClass so that the instance variables are initialized to 0.
g. Write the definition of the constructor with parameters of the class XClass so that the instance variable u is initialized to the value of a and the instance variable w is initialized to the value of b.
h. Write a Java statement that prints the values of the instance variables of x.
i. Write a Java statement that creates the XClass object t and initializes the instance variables of t to 20 and 35.0, respectively.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.