Start learning 50% faster. Sign in now
Encapsulation is one of the core principles of Object-Oriented Programming (OOP). It refers to the concept of bundling the data (attributes) and the methods (functions) that operate on the data into a single unit, or object, and restricting access to some of the object's components. This is typically achieved by using access modifiers such as private , protected , and public to control how the object's data can be accessed or modified. The key idea is to expose only the necessary functionalities (via public methods) while keeping the implementation details hidden.
Remi earns a profit of 20% on selling an article at a certain price. If she sells the articles for ₹. 8 more, she will gain 30%. What is the original ...
Ali Sold two articles, if he marked up the second article at 8.33% above the selling price of the first article and gave a discount of 12.5% on that, th...
The percentage profit earned when an article is sold for Rs. 420 is four times the percentage profit earned when the same article is sold for Rs. 330. ...
A jeweler sells a necklace for Rs. 4000 with a 25% profit and a bracelet for Rs. 1200 with a 20% profit. If the necklace is sold for Rs. 3500, what is t...
A person bought an article and sold it at a loss of 20%. If he had bought it at 10% less and sold it for 74 more, h would have gained 30%. Find the prof...
A person bought a mobile phone at a 10% discount. If he had bought it at a 20% discount, he would have saved ₹3000 more.
Find the market price ...
The selling price of the book is 30% more than the selling price of the bag and the selling price of the bottle is 30% less than the selling price of th...
Rohit sold a machine for Rs. 1,050 and made a profit of 5% on it. At what price should he sell the machine to make a profit of 18% on it?
A shopkeeper has some toys. He sells two-third of the toys at a profit of 35% and the remaining toys at 10% loss. What is his overall percentage of profit?