Question
A software developer is designing a banking application where each bank account object should restrict direct access to its balance variable to prevent accidental modifications. Instead, the application allows access to the balance only through specific methods like getBalance() and deposit(), which include validation checks to ensure that operations are secure and valid. Which object-oriented programming principle is the developer applying to achieve this data protection?
More IT Operating System Questions
- What is overfitting in the context of machine learning models?
- Which of the following sorting algorithms has the best worst-case time complexity of O(n log n)?
- Which IPv6 feature can unintentionally expose internal network structure to attackers if not properly randomized?
- What is the primary purpose of the UNION ALL operator in SQL?
- Which debugging technique involves adding temporary output statements (e.g., print() or console.log()) to display variable values or execution flow?
- In cryptography, a trapdoor function is defined as:
- Complete the while loop condition for an iterative binary search implementation. def binary_search(arr, target): low = 0 high = len(arr) - 1 ...
- Which of these AI approaches involves agents learning by interacting with their environment?
- What is the primary function of a gateway in a network?
- Which of the following sorting technique is an example of Divide and Conquer technique?
Relevant for Exams:
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt