Start learning 50% faster. Sign in now
Abstraction is a core concept of OOP that focuses on hiding unnecessary implementation details while exposing only the essential features of an object. This is achieved through abstract classes and interfaces. For instance, a Car class might expose methods like start() or drive() without detailing how the engine works internally. Abstraction simplifies the development process by allowing programmers to focus on high-level logic rather than low-level complexities. It also enhances security by preventing direct access to sensitive parts of an application. Why Other Options Are Incorrect : 2. Restricting access to certain parts of an object to protect data : This describes Encapsulation , not Abstraction. Encapsulation involves bundling data and methods together and using access modifiers to control visibility. 3. Combining different objects into a single unit to represent a relationship : This describes Aggregation , where objects are linked to represent "has-a" relationships, like a Library having Books. 4. Allowing multiple classes to share the same method name but with different implementations : This defines Polymorphism , specifically method overriding or overloading, and is unrelated to abstraction. 5. Establishing a parent-child relationship between classes : This is Inheritance , where one class derives from another, enabling code reuse and hierarchy building.
A shopkeeper marks his goods 60% above the CP and gives 25% discount to customer. At the time of selling the goods he uses 800gm weight instead of 1 kg ...
Amir sells his bike to Nitin at a profit of 30% who sells it to Rohan at a loss of 10%. Rohan, after finding some scratches in the bike, returns it to N...
What will be the percentage profit after selling an article at a certain price if there is a loss of 30% if the article is sold at 1/4th of t...
Roshan purchased 100 rolls of paper for Rs. 32 per roll. He spent Rs. 450 on their transportation. He also paid 20 paise per roll for packing of each ro...
The cost price of 6 chocolates and 4 biscuits amounts to Rs. 6,960. Additionally, the cost price of 5 chocolates and 7 biscuits totals Rs. 8,880. Each c...
Anaya sold a watch to Kirti with a 24% markup, and Kirti then sold the watch to Bhavya at a 12% markup. If Bhavya purchased the watch for Rs. 694.4, det...
The selling price of 15 oranges is equal to the cost price of 12 oranges. Find the loss percent.
Labelled price of an article is 60% more than the CP of the article. When it is solid at x% discount then _______% percent profit is obtained and when ...
A shopkeeper bought article ‘A’ for Rs. ‘x’ and marked it 25% above its cost price and sold it for Rs. 2600. Marked price of article ‘B’ is ...