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 |
Name some languages which have object oriented language and characteristics?
Is iterator a class or interface? What is its use?
In winform my controls [taskbar and progressbar] become inactive when heavy processing is going in background, how to avoid this via multithreading
What is the order of call of constructors in inheritiance?
What is data encapsulation and what is its significance?
Can encapsulation be called as a security device?
What are abstract classes?
What is operator overloading?
What is a final variable?
What is the main advantage of using inheritance?
What are extrinsic and intrinsic connections in object-oriented programming?
What is the difference between data hiding and implementation?