Solved

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

Posted on 2007-03-27
5
601 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

914 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

16 Experts available now in Live!

Get 1:1 Help Now