Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2007, 04:30 AM
Registered User
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Constructor

hi!

Does constructor return anything in .Net (precisely in C#). In regard of Java, construct returns object. This is also possible in C#.
 
Old July 17th, 2007, 12:33 AM
Authorized User
 
Join Date: Jul 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Return type of a constructor in C# is void.
For more information... read this...

  http://www.dotnetuncle.com/OOPS/23_constructor.aspx

 HTH

 Cheers

 VK

http://www.dotnetuncle.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
private constructor in C# n.nsivakumar C# 1 August 16th, 2006 07:08 AM
Constructor ramess C++ Programming 1 March 18th, 2006 07:23 PM
Problem with a constructor Mishkina General .NET 0 September 23rd, 2005 08:26 AM
Constructor problem yengzhai C++ Programming 6 May 18th, 2005 11:05 AM
Constructor With a Default? n6532l Visual C++ 2 September 18th, 2003 02:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.