Beruflich Dokumente
Kultur Dokumente
Answer:
Programming paradigms:
Structured programming:
The idea of encapsulation is to hide how a class does it but to allow what
to do.
Structured programming does not provide the facility of encapsulation.
• Same code repetition
Same code repitition means repeat the process with each new piece until
each
can be solved directly .
• Lack of information hiding
The main drawback of structured programming is lack of information
hiding.
Object
Class
Properties
Functions
Benefits of OOP:
• Testability:
Automated testing can increase speed of testing and increase
quality.
• Code re-use:
Polymorphism, generics and Interfaces provide the facility of
code re-use.
• Code extensibility:
The user can extens the program code as and when needed .
• Error detection:
Catch errors at compile time rather than at runtime.
• Maintainability:
If designed correctly, any tier of the application can be
replaced by another that
implements the correct interface, and the application will
still work .
• Reduction:
Reduses large problems to smaller, more manageable ones.
• Real world problems:
It is easy to map a real world problem to a solution in object
orientation code.
Q#2: What is object oriented software design?
Answer:
Software design: