1. Match the following term with its definition. Write the letter in the blank s
ID: 3750308 • Letter: 1
Question
1. Match the following term with its definition. Write the letter in the blank space. . private member 2. mutator 3. package 4. static class 5. shallow copying A. refers to the currently running object B. each reference variable refers to its own object C. initialized using an existing object D. non-static data members E. automatically executes when the class object goes out of scope 0. copy constructor F. method that accesses the values of the data members 7. encapsulation G. can be accessed in the definition of a method and in the user's program 8. finalize H. cannot be instantiated 9. instance variables I. collection of related classes 10. this J. process that allows class variables to be read or modified by other classes K. 2 or more reference variables of the same type point to the same object L. method that modifies the values of the data M. first basic principle of O-O design N. doesn't need an object to be invoked O. used to completely hide a method or variable from other classes
Explanation / Answer
Answer)
1) Private members -- G) Can be accessed by definition of method in the user's program
2) Mutator -- L) This is used to modify the values of data members
3) Package-- I) Collection of related classes
4) Static Class - H) Cannot be instantiated
5) Shallow copying -- B) Each reference variable refering to its own object.
7) Encapsulation -- K) 2 r more reference variable of the same type point to the same object.
As per Chegg Policy a minimum of 1 question is to be answered. We did 6.
Hope this answer helps. :)
Hit like if you find the answer helpful. Thanks
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.