Answer Posted / kanthi
Actually, the main advantage of modularity is reusability.
By dividing a complex problem into modules and implementing
them differently, reusability can be achieved as these
modules can be used when need for same task arises in a
similar problem.
Also, ofcourse modularity increases code legibility and it
is an efficient way of handling difficult and lengthy tasks
by dividing each module responsibilty amongst various
developers.
| Is This Answer Correct ? | 29 Yes | 0 No |
Post New Answer View All Answers
#include
Give two or more real cenario of virtual function and vertual object
Why interface is used?
Can a varargs method be overloaded?
What is the difference between abstraction and polymorphism?
c++ program to swap the objects of two different classes
What is a class in oop?
What is a class and object?
What is the use of oops?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Why do we use encapsulation in oops?
What is polymorphism give a real life example?
Can private class be inherited?
What are the components of marker interface?
Why is polymorphism used?