Welcome to Dream.In.Code
Become a C# Expert!

Join 150,399 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 971 people online right now. Registration is fast and FREE... Join Now!




class intializing

 
Reply to this topicStart new topic

class intializing

javagoutom
6 Mar, 2008 - 04:53 AM
Post #1

New D.I.C Head
*

Joined: 20 Sep, 2007
Posts: 25


My Contributions
to intialize a class we use

CODE
className obj=new className();


Let me know that why the set of braces is there after the className()....


User is offlineProfile CardPM
+Quote Post

bhandari
RE: Class Intializing
6 Mar, 2008 - 04:57 AM
Post #2

D.I.C Addict
Group Icon

Joined: 31 Jan, 2008
Posts: 747


Dream Kudos: 900
My Contributions
because you are calling the constructor method which will do some initializations for your object. You can define a custom constructor.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 07:03PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month