Explian following terms: Constraint Rules, Design by
contract.



Explian following terms: Constraint Rules, Design by contract...

Answer / debalina

Design by contract :Design by contract, DBC or Programming
by contract is an approach to designing computer software.
It prescribes that software designers should define precise
verifiable interface specifications for software components
based upon the theory of abstract data types and the
conceptual metaphor of a business contract.Because "Design
by Contract" is a trademark of Eiffel Software, the
maintainers of Eiffel, many developers will refer to it
only as programming by contract or contract-first
development. The principal idea of Design by Contract (DBC)
is that a class and its clients have a contract with each
other: The client must guarantee certain conditions before
calling a method specialized on the class (the
preconditions), the class guarantees certain properties
after the call (the postconditions). If the pre- and
postconditions are included in a form that the compiler can
check, then any violation of the contract between caller
and class can be detected immediately.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOAD Interview Questions

What is single and multiple inheritance?

0 Answers  


Difference between encapsulation and data hiding ?

0 Answers  


Why is message passing between the objects important?

0 Answers  


What is dynamic or run time polymorphism?

0 Answers  


What's the main difference between arraylist / hashmap and vector / hashtable?

0 Answers  


What is a static method? Why do we need static methods in java 8 interfaces?

0 Answers  


What is the difference between new and override?

0 Answers  


What is a functional interface? What is sam interface?

0 Answers  


Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?

5 Answers   ABC, Protech,


How to resolve many to many relationship?

6 Answers   InfoAxon Technologies, Protech, Samsung,


Can I implement polymorphism using abstract class?

0 Answers   MCN Solutions,


Explain the mechanism of composition?

0 Answers  


Categories