JAVA OOP
ClassCitizen holds two states i.e.,“cnic” of type integer and“name” of type String, and a setter and getter method of type void and integer respectively that sets and returns the name state. An object of classCitizen is created in another class that holds main method.
Explain what size is reserved for both classes in the memory.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here