Should Instanceof be avoided?

Keep the rocks out of your array and you can avoid instanceof . Or have rocks do nothing when ordered to speak. This is the idea behind the null object pattern.

Sizin İçin Seçtik  Is Java 32-bit int?

Leave a Reply

Your email address will not be published. Required fields are marked *