What are constructers and overloaded constructers?

This is a discussion on What are constructers and overloaded constructers? within the C++ Programming forums, part of the General Programming Boards category; Can someone tell me what a constructer and an overloaded constructer are?...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    15

    What are constructers and overloaded constructers?

    Can someone tell me what a constructer and an overloaded constructer are?

  2. #2
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    Read the 2nd Reply

    As for overloaded constructors: An overloaded function (in this case a constructor) is when you make multiple functions with the same name but which take different arguments. With constructors, this allows you to construct your objects in literally an infinite amount of ways (or until you get tired of typing... whichever comes first )

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21