• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 613
  • Last Modified:

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

What does this do?
public boolean isQuiet() {
            return this.quiet;
      }
0
yankeebushsoftware
Asked:
yankeebushsoftware
1 Solution
 
JavatmCommented:
> 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);
0
 
objectsCommented:
returns the value of the class member variable named quiet.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> in a very simple way it returns boolean

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

:D
0
 
havman56Commented:
this is the object that is calling

class Test have this function then

Test obj;
obj.isQuiet() is same way checking

return this.quiet;
is same way as
return quiet ;
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now