Question
Which of the following best describes the concept of
abstraction in object-oriented programming (OOP)?ÂSolution
Abstraction in OOP is a fundamental concept that involves hiding the complex internal details of a system and exposing only what is necessary to the user. This simplifies the interaction with objects and promotes reusability, as the user can interact with high-level methods without needing to understand their internal workings. It allows developers to create complex systems while maintaining a clear and simplified interface. In practical terms, abstraction can be achieved through the use of abstract classes and interfaces, where only the essential behavior is defined, and the details are hidden. Why other options are wrong: A) This describes encapsulation, not abstraction, which involves combining data and methods into a class. C) This is method overloading, where multiple methods share the same name but differ in parameters or implementation. D) This refers to inheritance and polymorphism, not abstraction. E) This describes polymorphism, which allows objects to behave differently based on the context.
What was the percentage increase in India's import of Russian oil year-on-year in July 2024?
Which state government recently announced a special scheme offering a 50% subsidy on Nano Urea and Nano DAP to promote sustainable agricultural practices?
Union Minister Dr. Jitendra Singh recently launched the ‘InFLiMeN’ initiative to prevent and cure metabolic liver diseases. This initiative was laun...
With reference to the 11th International Day of Yoga (IDY) in 2025, consider the following statements:
1. Visakhapatnam has been chosen as the na...
Which bank has introduced several digital innovations on its 117th foundation day in July 2024, including a Generative AI-powered Virtual Rel...
Which entity has seen a 45% yearly growth in transactions, with the value crossing ₹20 trillion for the third consecutive month?
Which country recently approved the schedule for creating its orbital station by 2033?
Which two sectors were the focus of the initial SEBI stress tests before expanding industrywide?
Which areas were recently declared as Peacock Sanctuaries by the Union Minister for Environment, Forest and Climate Change, Mr. Bhupender Yadav? Â
Consider the following statements regarding the RBI’s e-Kuber platform and recent government directives:
1. From July 16, 2025, all government ...