Link to home
Start Free TrialLog in
Avatar of yankeebushsoftware
yankeebushsoftwareFlag for United States of America

asked on

What does this do? public boolean isQuiet() {return this.quiet; }

What does this do?
public boolean isQuiet() {
            return this.quiet;
      }
Avatar of Javatm
Javatm
Flag of Singapore image

> What does this do?

in a very simple way it returns boolean but I can't say if it is true or false cause what you only have is:
this.quiet

if this.quiet is set to true somewhere or maybe false then you'll get the answer you can try:
System.out.println(this.quiet);
Avatar of Mick Barry
returns the value of the class member variable named quiet.
>> in a very simple way it returns boolean

In a quiet way, it tells you if the current object is quiet or not :)
> In a quiet way, it tells you if the current object is quiet or not :)

:D
ASKER CERTIFIED SOLUTION
Avatar of havman56
havman56

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial