Results 1 to 2 of 2
  1. #1
    krishanu is offline Member
    Join Date
    May 2011
    Posts
    20
    Rep Power
    0

    Default real time example of object as a parameter and copy constructors

    Hi,

    Can anybody please give me a example where i should use object as a parameter and copy constructors(in -real time)...

    thanks...
    krish

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Would you mind clarifying your question? You generally don't have copy constructors in java, if you want a copy of an object you can clone it, when passing an object as an argument you are basically passing a reference in java.

Similar Threads

  1. On references and copy constructors
    By guest_user in forum New To Java
    Replies: 4
    Last Post: 05-25-2011, 01:27 PM
  2. Real Time?
    By RaustBD in forum New To Java
    Replies: 1
    Last Post: 01-01-2011, 03:14 AM
  3. How to update in real time
    By darius_dada in forum AWT / Swing
    Replies: 1
    Last Post: 12-14-2010, 11:05 PM
  4. real-time validation
    By atomz4peace in forum Eclipse
    Replies: 0
    Last Post: 01-06-2009, 08:31 PM
  5. how get real-time output
    By tOpach in forum New To Java
    Replies: 5
    Last Post: 12-17-2008, 09:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •