+ Reply to Thread
Results 1 to 2 of 2

Thread: return type of constructor

  1. #1
    Surfer is offline Senior Member
    Join Date
    Mar 2010
    Posts
    321

    return type of constructor

    What is the return type of a constructor?

  2. #2
    Pradeep Panwar is offline Junior Member
    Join Date
    Nov 2010
    Posts
    4
    The constructor is a function whose name is the same as the object, with no return type (not even void)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. memory deallocation on exception in constructor
    By JavaGuy in forum Bloomberg
    Replies: 0
    Last Post: 26th May 2010, 23:45
  2. What is Type Casting ?
    By TopGun in forum C++ Fundamentals
    Replies: 0
    Last Post: 25th June 2008, 13:41
  3. Virtual Constructor
    By TopGun in forum C++ Fundamentals
    Replies: 0
    Last Post: 13th June 2008, 12:41

Tags for this Thread

Bookmarks

Posting Permissions

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