JAVA OOP Class Citizen 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...



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.



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here