Support us .Net Basics C# SQL ASP.NET ADO.NET MVC Slides C# Programs Subscribe Buy DVD

Part 20 - C# Tutorial - Static and instance class members


Part 20 - C# Tutorial - Static and instance class members


6 comments:

  1. Great Videos thank you I was getting lost at school but these videos are really helping me to understand what is going on

    ReplyDelete
  2. very good Videos for free of cost...Thanks Gr8 help

    ReplyDelete
  3. Hi Venkat
    Please add this topic in text also. Besides this, I would request you one thing, your blog opens with VPN in office. Could you please make it available in office network so that anyone can read the articles in office network also.Thanks

    ReplyDelete
  4. Hi Venkat, I am learning C# from your youtube channel, its a great help for guys like me, and I appreciate you for the same.
    I have a question for you, I have learned about static and instance class methods, but I am finding myself unable to decide that in which scenario or situation I should make the method static or keep it instance method. How to decide this? Kindly help me with some simple example. But kindly notice that I am an absolute beginner hence illustrate this me in simplest way possible. Thanks very much in advance.

    ReplyDelete
    Replies
    1. hi Kumar, i think we should use Static method if the method is useful, we need use it lots of times. in that case, if we set the method as intance method, we need to invoke a instance class every time to use that method, the cost of the memory is too huge. So as my understanding, we should use Staic method if the method always be called, such as Console.writeLine().
      it's just my personal idea, hope we can share ideas.

      Delete
  5. Hi Venkat,

    Why I cannot write Console.Writeline(This is instance constructor ); below the return statement ?

    ReplyDelete

If you like this website, please share with your friends on facebook and Google+ and recommend us on google using the g+1 button on the top right hand corner.