query regarding objects

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agsupriya86
    New Member
    • Mar 2007
    • 34

    query regarding objects

    hi.

    Each C++ object possesses the 4 member fns,(which can be declared by the
    programmer explicitly or by the implementation if they are not available). What
    are those 4 functions?

    i know two functions;const ructors and destructors but which are the other two??
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by agsupriya86
    hi.

    Each C++ object possesses the 4 member fns,(which can be declared by the
    programmer explicitly or by the implementation if they are not available). What
    are those 4 functions?

    i know two functions;const ructors and destructors but which are the other two??
    compiler by default provides these for the c++ object
    1)copy constructor
    2)default constructor
    3)default destructor
    4)assignment operator
    5)Addressof operator

    Raghuram

    Comment

    Working...