What is guard condition?

Answer Posted / tilak chandan

A guard condition appears at the start of the interaction
and contains all the information that is required to make
the decision about whether to execute the traces in the
interaction operand. If the guard condition tests true, the
traces execute. Because a guard condition is optional, the
interaction also executes if no guard condition is specified
in the interaction operand

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different ways for a method to be overloaded?

543


Explain what is polymorphism?

617


What are the features that are provided to make a program modular?

604


Write basic concepts of oops?

577


What is data encapsulation and what's its significance?

618






What is dynamic or run time polymorphism?

564


Can an interface contain fields?

583


Explain about a class?

545


Difference between encapsulation and data hiding ?

517


What is multiple inheritance? How java 8 supports multiple inheritance?

604


Can an interface implement or extend another interface?

565


What is abstraction? How does it differ from encapsulation

532


Can we override static methods of a class?

544


What is a constructor in class?

595


Differentiate between overloading and overriding.

595