Question
Which OOP concept directly influences control flow by
allowing different implementations of a method to be called based on the type of the object at runtime?ΒSolution
Polymorphism (specifically method overriding and dynamic method dispatch) allows objects of different classes to be treated as objects of a common type, and the specific method implementation called depends on the actual object's type at runtime.
A and B entered into a business investing their capital in the ratio of 16:21, respectively and the respective ratio of time for which they made their i...
Ravi and Mohan started a business by investing Rs. βXβ and Rs. (X + 600), respectively. 18 months later, Mohan withdrew his entire investment. At th...
- Aman and Rohit invested Rs. 1500 and Rs. 2000 in a venture. After 8 months, Suresh joined with Rs. βxβ. If Amanβs share from total profit of Rs. 900 ...
Anna and Ben initially invested Rs. 12,500 and Rs. 15,000 in a business venture. Six months into the business, Anna added another Rs. 2,500 to her inves...
- X and Y invested Rs. 48,000 and Rs. 36,000 respectively in a business. After 4 months, Z joined them with an investment of Rs. 30,000. If the annual profit...
Partners P, Q, and R started a company. P invested 36% more than R, and Q invested 54% more than R. If the total profit after a year is Rs. 42000, how m...
βAβ started a business with the investment of Rs. 12000. After βxβ months and after 3 months from starting βBβ and βCβ, respectively, jo...
A and B started a business by investing Rs.300 and Rs.400 respectively. After 6 months, A increased his investment by Rs.800. Find the ratio of annual p...
Three friends, Aman, Bheema, and Chetan, together invested a total of Rs. 9400. After one year, they received profits of Rs. 1440...
'A' and 'B' started a partnership by investing Rs. 9,000 and Rs. 12,000 respectively. 25% of the total profit is given to 'A' for managing the business,...