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
- In a Selection Sort algorithm, the inner loop finds the index of the minimum element in the unsorted part. Which line correctly completes the if condition ...
- The following C++ code intends to demonstrate runtime polymorphism, but it's not working as expected. What is the issue? #include class Animal { publ...
- Which of these AI approaches involves agents learning by interacting with their environment?
- “Build Verification Testing” is the name of :
- The major drawback of Shortest Remaining Time First is: Long average turnaround time
- What is the value of sum after the following Python code executes? sum = 0 for i in range(5): if i % 2 == 0: sum += i ...
- What is the output of the following Java code? public class Test { public static void main(String[] args) { String s1 = "Java"...
- When building a Huffman tree, the two nodes with the smallest frequencies are combined. Which line correctly creates a new parent node newNode with left an...
- State True or False Kernel level thread cannot share the code segment.
- In which topology does data travel in a circular manner from one node to another?
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)