Question: Need help with java questions Save Question 9 (1 point) What is data encapsulation in object oriented programming? Data encapsulation is having the member variables
Save Question 9 (1 point) What is data encapsulation in object oriented programming? Data encapsulation is having the member variables of a class specified as private so only the code in the class can access them. All code outside the class must use the public methods of the class to interact with the data in the class. Member variables of the class are encapsulated as public to provide efficient access to code outside the class. O All data important to a class is kept outside the class in the main program to ensure data integrity. OData encapsulation is implemented by making member variables public and methods to access the data private. Save Question 10 (1 point) The keyword "this" inside an object method O holds a reference to the object that the method was called on. O is passed as a parameter automatically. O can be used to reference a data field variable even if there is a local variable with the same name All of the above. Save
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
