Question
Which OOP principle focuses on showing only essential
information and hiding the complex implementation details from the user?Solution
o Abstraction is the principle of hiding complex implementation details and showing only the necessary or relevant information to the user. It focuses on "what" an object does rather than "how" it does it. For example, when you drive a car, you interact with the steering wheel and pedals (the abstract interface) without needing to know the intricate details of the engine or transmission (the hidden implementation). o Encapsulation (A) is the bundling of data and methods that operate on the data within a single unit (e.g., a class) and restricting direct access to some of the component's internals. It's a mechanism often used to achieve abstraction, but it's not the concept of hiding complexity itself. o Inheritance (B) is a mechanism where one class acquires the properties and behaviors of another class. o Polymorphism (C) allows objects of different classes to be treated as objects of a common type, enabling a single interface to represent different underlying forms. o Association (E) describes a relationship between two separate classes where one class uses the services of another class.
What term will India serve on the UN Peacebuilding Commission (PBC) after re-election in 2025?
India and Sri Lanka are separated by which strait?Â
Which of the following state has the highest animal stock in India according to 20th Livestock Census, 2019?
Which of the following cooperative banks had its license cancelled by the RBI due to inadequate financial stability and regulatory non-compliance in Jul...
Which of the following terrains is known as older alluvial deposits?
Who interpreted 'The Vedas contain all the truth'?
In which of the following year, Govind Ballabh Pant received the Bharat Ratna Award?
Which state cabinet has approved the mental health and social care policy in the state?
___________ approved financing of USD 250 million for Bangladesh to help it strengthen policies to sustain growth following the COVID 19 pandemic and en...
Which one of the following tribes has the highest population in Uttar Pradesh?