Solved

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

Posted on 2007-03-27
5
605 Views
Last Modified: 2010-10-05
What does this do?
public boolean isQuiet() {
            return this.quiet;
      }
0
Comment
Question by:yankeebushsoftware
5 Comments
 
LVL 15

Expert Comment

by:Javatm
ID: 18804637
> 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
 
LVL 92

Expert Comment

by:objects
ID: 18805113
returns the value of the class member variable named quiet.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18809425
>> in a very simple way it returns boolean

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

Expert Comment

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

:D
0
 
LVL 4

Accepted Solution

by:
havman56 earned 500 total points
ID: 18851081
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
rhino JavaScript import, load 25 85
web services creation SOAP vs REST 5 42
Windows 10 IE Certificate Issue 10 47
CSV file parsing thru Java 13 31
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question