Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #640
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@ieee-dot-org.invalid> |
| Newsgroups | comp.lang.java.help |
| Subject | Re: Is it sign of bad Object Oriented programming? |
| Date | Sun, 24 Apr 2011 12:01:28 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 24 |
| Message-ID | <ip1hhr$ef2$1@dont-email.me> (permalink) |
| References | <87wriklitz.fsf@merciadriluca-station.MERCIADRILUCA> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 24 Apr 2011 16:02:04 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="KiwfXDyOjqGhZBXcfNnZBg"; logging-data="14818"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pvQnbf+HNxZFXjkC84f6H" |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
| In-Reply-To | <87wriklitz.fsf@merciadriluca-station.MERCIADRILUCA> |
| Cancel-Lock | sha1:6JKJJ9jIcg+QG/S4HZz6nbkFDYE= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.help:640 |
Show key headers only | View raw
On 4/23/2011 6:10 PM, Merciadri Luca wrote:
>
> Let us consider a class Class and an object myObj of type Class. Let
> there be a method myMeth defined in the Class class.
>
> Are there some cases where typing e.g.
> ==
> myObj.myMeth(myObj)
> ==
> is not considered as `bad style?' That is, are there, more generally,
> some situations where passing an instanciated object to a method of
> this object is a good way of achieving something?
boolean arrayHasEqualThing(Thing[] array, Thing thing) {
for (Thing t : array) {
if (t.equals(thing)) // Look here!
return true;
}
return false;
}
--
Eric Sosman
esosman@ieee-dot-org.invalid
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
Is it sign of bad Object Oriented programming? Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-04-24 00:10 +0200
Re: Is it sign of bad Object Oriented programming? Lew <noone@lewscanon.com> - 2011-04-23 18:31 -0400
Re: Is it sign of bad Object Oriented programming? Lew <noone@lewscanon.com> - 2011-04-23 18:32 -0400
Re: Is it sign of bad Object Oriented programming? Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-04-24 00:57 +0200
Re: Is it sign of bad Object Oriented programming? Roedy Green <see_website@mindprod.com.invalid> - 2011-04-24 06:55 -0700
Re: Is it sign of bad Object Oriented programming? Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-04-24 12:01 -0400
Re: Is it sign of bad Object Oriented programming? Lew <noone@lewscanon.com> - 2011-04-24 15:21 -0400
Re: Is it sign of bad Object Oriented programming? Patricia Shanahan <pats@acm.org> - 2011-04-24 12:54 -0700
Re: Is it sign of bad Object Oriented programming? Lew <noone@lewscanon.com> - 2011-04-24 17:26 -0400
Re: Is it sign of bad Object Oriented programming? Patricia Shanahan <pats@acm.org> - 2011-04-24 14:42 -0700
Re: Is it sign of bad Object Oriented programming? Lew <noone@lewscanon.com> - 2011-04-24 21:06 -0400
csiph-web