Solved

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

Posted on 2007-03-27
5
598 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
Comment Utility
> 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
Comment Utility
returns the value of the class member variable named quiet.
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
>> 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
Comment Utility
> 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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now