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
- Which of the following operation is performed by Domain Name Server (DNS)?
- What is the main purpose of Inheritance in OOP?
- Consider the Quick Sort algorithm with the last element as the pivot. For the array [7, 2, 1, 6, 8, 5, 3, 4], what will be the state of the array *after th...
- A C function pop(Stack* s) is designed to remove and return the top element from a stack. #include #include #define MAX_SIZE 10 typedef struct ...
- Which of the following is used to explicitly release memory occupied by an object in Java?
- In the dynamic programming solution for Matrix Chain Multiplication, the outermost loop iterates over the len (chain length). What are the correct loop bou...
- Which single command grants the file owner full permissions (read, write, execute), the group read and execute permissions only, and all other users no per...
- Which statement is TRUE regarding SCR Thyristor?
- Which collection class does not allow duplicate elements?
- Fill the blank In K-Means algorithm, we calculate the distance between each point of the dataset to every ________ initialized.
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
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)