----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: SitaramanM Message 2 in Discussion Hi What is a Sealed Class? A Sealed Class(NotInheritable in VB.Net is a class from which you cannot inherit) Difference between const and static readonly (Readonly and Const) A Const is a Qualifier which will allow you to declare an entity and assign it a value in one shot. Whereas a readonly allows you to declare an entity and later assign it a value in the constructor. However you can assign the value only once. A static readonly as the name implies is an entiry which belongs to a type, rather than an instance(static) and you can initialize it either at declaration or in the constructor. A simple example is the MS implementation of the Singleton model where you just need to declare a public static readonly member to create a singleton When GC will be called in a Application How can we called programatically GC can be called by using GC.Collect() though it is not recommended When the Destructor will be called? There are no Destructors in .Net(Given the fact that Memory Management is done by the runtime and you do not have any control on when the object is actualy deallocated, thereby making destructors redundant). You have only Finalizers. For more info on Finalizers check out the recent posts where links were provided to a couple of good articles by Jeffrey Richter regards, sr ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
