Start learning 50% faster. Sign in now
The Single Responsibility Principle (SRP) in SOLID design principles states that a class should have only one reason to change, meaning it should encapsulate only one responsibility. This principle promotes cohesion and ensures that each class handles a single task or functionality. For instance, in an inventory management system, a Product class should handle product-related data only, while a separate Inventory class manages stock levels. Adhering to SRP reduces complexity, makes code easier to understand, and simplifies debugging and testing. By isolating responsibilities, developers can introduce changes without affecting unrelated parts of the system. Why Other Options Are Incorrect :
According to the Economic Survey 2023-24, what measures helped reduce core inflation in India to a four-year low in FY24?
If a country’s policy makers were to continuously use expansionary monetary policy in an attempt to hold unemployment below the natural rate the long-...
Expansionary fiscal policy in the classical model will cause aggregate demand to-----potential output?
GDP at market price is given by?
Lorenz Curve is given by:
L(x) = 1/3 (X^3) + 2/3 (x^5). Calculate Gini Coefficient.
What is the dual problem for given linear programming problem?
Z = Max (4x1 + 5x2 + 7x3)
s.t. 3x1 + x2 + 6x3 <= 3
x1 + 2x2 + x...
A country imposes a 10% tariff on imported vehicles but no tariff on imports of machinery or other inputs to the manufacture of vehicles. Suppose that u...
Which of the following is not correct regarding adjusted R2?
...For the following demand curve, Q=10P-2 , calculate the profit made by the monopolist when Marginal cost is Rs.2
Consider the following production function
Q = 20L – 0.2L2 – 20K + 0.2 K2 + 4KL
If 20 units of capital i...