Bundling code into individual software objects provides a number of benefits, including:
1.Modularity 2.Information-hiding 3.Code re-use 4.Pluggability and debugging ease
Modularity The source code for an object can be written and maintained independently of the source code for other objects. Once created, an object can be easily passed around inside the system.
Information-hiding: By interacting only with an object's methods, the details of its internal implementation remain hidden from the outside world.
Code re-use: If an object already exists (perhaps written by another software developer), you can use that object in your program. This allows specialists to implement/test/debug complex, task-specific objects, which you can then trust to run in your own code.
Pluggability and debugging ease: If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement. This is analogous to fixing mechanical problems in the real world. If a bolt breaks, you replace it, not the entire machine
What is Reusability A principal goal of object-oriented programming is to make the code we write as reusable as possible to have it serve many different situations and applications so that we can avoid reimplementing, even if in only slightly different form, something that's already been done. Reusability is influenced by a variety of different factors, including:
* How reliable and bug-free the code is * How clear the documentation is * How simple and straightforward the programming interface is * How efficiently the code performs its tasks * How full the feature set is
Bundling code into individual software objects provides a number of benefits,one of it Modularity, 1.The almost magic benefits of modularity are caused by the particular decomposition. Many decompositions can actually increase complexity 2.Modularity provides benefits when it is used in the proper way, splitting an application into parts is not guaranteed to give you these benefits 3.With modularity, we have the fantastic tool that the rules inside the module are different from the rules outside the module 4.The source code for an object can be written and maintained independently of the source code for other objects. I.P.N Prathibhani AS/07/08/057
Bundling code into individual software objects provides a number of benefits, including:
ReplyDelete1.Modularity
2.Information-hiding
3.Code re-use
4.Pluggability and debugging ease
Modularity
The source code for an object can be written and maintained independently of the source code for other objects. Once created, an object can be easily passed around inside the system.
Information-hiding: By interacting only with an object's methods, the details of its internal implementation remain hidden from the outside world.
Code re-use: If an object already exists (perhaps written by another software developer), you can use that object in your program. This allows specialists to implement/test/debug complex, task-specific objects, which you can then trust to run in your own code.
Pluggability and debugging ease: If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement. This is analogous to fixing mechanical problems in the real world. If a bolt breaks, you replace it, not the entire machine
What is Reusability
ReplyDeleteA principal goal of object-oriented programming is to make the code we write as reusable as possible to have it serve many different situations and applications so that we can avoid reimplementing, even if in only slightly different form, something that's already been done.
Reusability is influenced by a variety of different factors, including:
* How reliable and bug-free the code is
* How clear the documentation is
* How simple and straightforward the programming interface is
* How efficiently the code performs its tasks
* How full the feature set is
C.Y.Samaraweera AS/07/08/066
Bundling code into individual software objects provides a number of benefits,one of it Modularity,
ReplyDelete1.The almost magic benefits of modularity are caused by the particular decomposition. Many decompositions can actually increase complexity
2.Modularity provides benefits when it is used in the proper way, splitting an application into parts is not guaranteed to give you these benefits
3.With modularity, we have the fantastic tool that the rules inside the module are different from the rules outside the module
4.The source code for an object can be written and maintained independently of the source code for other objects.
I.P.N Prathibhani AS/07/08/057
what is different about modularity in java and C?
DeleteEasy to debug
ReplyDeleteCode re usability
Encapsulating information
Modularity