Search | View Active Threads | View New Posts
Current Time: 07:24 PM


+ Reply to Thread
Results 1 to 4 of 4
  1. #1

    Thumbs up What are the features of Static Constructor?

    Only one Static constructor - Overloading needs the two methods to be different in terms to methods definition, so you can have at the most one static constr ctor

    Without parameters - It is going to be called by CLR, who can pass the parameters to it, if required, No one, so we cannot have parameterized static constr ctor.

    Access only static members - If allowed to work on non-static members, will reflect the changes in all the object instances, which is impractical. Non-static mem ers in the class are specific to the object instance

    No access modifier - The call to the static m thod is made by the CLR and not by the object, so we do not need to have the access modifi r to it.

  2. #2
    Join Date
    May 2019
    Static constructors have the following properties: A static constructor does not take access modifiers or have parameters. A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced. A static constructor cannot be called directly.

    Preschool in K Narayanpura | Preschool & Day Care in K Narayanpura | Top 10 Play Schools in K Narayanpura | Best Pre-Nursery in Thanisandra | Best Day Care Centers in Kothanur |Preschool in Nagavara|Top Play schools in K Narayanpura

  3. #3
    Join Date
    Jul 2019
    A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed once only. It is called automatically before the first instance is created or any static members are referenced.

Posting Permissions

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


Domain Escrow Services Domain Registrar, Marketplace and Revenue Optimizer
Trellian Direct Search Network

Industry Events

11-14 August 2019
Affiliate Summit East
New York, NY

4-6 March 2019
Las Vegas

15-18 September 2018
MERGE 2018
Orlando, FL


How do you invest in domains?
to see the Poll results!
Domain Tools | Domain Directory | Registrar Stats | Domain Glossary | Industry Events | FAQ | Members | Terms | RSS | Link To Us | Advertise | Contact Us
Other Related Trellian Services: Registrar  | Marketplace  | Domain Manager  |  Free Search Toolbar  |  Free Webpage Builder  |  Keyword Research
Direct Search Navigation  |  Search Engine Submission and SEO Tools
Copyright © 2002 a Trellian Company 2014 Bronze Sponsor - Internet Commerce Association