The Artima Developer Community
Sponsored Link

Java Answers Forum
obgects in methods

1 reply on 1 page. Most recent reply: May 4, 2006 7:49 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Alex Tanil

Posts: 10
Nickname: alextanil
Registered: May, 2006

obgects in methods Posted: May 4, 2006 6:53 AM
Reply to this message Reply
Advertisement
lets say i have created a class. Can I, inside this class, write a method that takes as input, two objects of the class? ex. public void addCoins(coin x, Coin z), a method of class Coin


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: obgects in methods Posted: May 4, 2006 7:49 AM
Reply to this message Reply
Yes, that's possible

Best example:
class Object contains this method:

public boolean equals(Object o) {...}

Flat View: This topic has 1 reply on 1 page
Topic: Regarding Java Security Previous Topic   Next Topic Topic: hi! i have a problem of how to make the java program of checkwriter.java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use