Question
Which access modifier is most commonly used to achieve
data hiding in encapsulation?Solution
The private access modifier restricts access to members (fields or methods) only within the class where they are declared. This effectively hides the internal data from external classes, forcing them to interact with the data through public methods (getters/setters).
Strait of Kerch links which of the following two seas?
India's rank in Global Prosperity Index 2017 is
"Working for a world free of poverty" is the motto of:
Which of the following is the first payment bank of India
Which state is known for the significant chromite reserves in the Sukinda valley?
Who was the opponent Lakshya Sen defeated to secure a semi-finals spot at the 2024 Paris Olympics, a historic achievement for an Indian male badminton p...
Who founded the Sikh Khalsa?
What is the currency of Albania?
.What is the rank of India in Human Capital Index 2017?
Dry ice is: