Part 29 – C# Tutorial – Difference between classes and structs in c#.avi

Part 29 - C# Tutorial - Difference between classes and structs in c#.avi

Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists My Blog: www.cs…
Video Tutorial Rating: 4 / 5

Don’t forget to check out our other video tutorials or share this video with a friend.

1 Star2 Stars3 Stars4 Stars5 Stars 0 votes
Loading... 3,238 views





21 responses to “Part 29 – C# Tutorial – Difference between classes and structs in c#.avi”

  1. eri sox says:

    will this work in unity?

  2. ritesh kumar singh says:

    Very nice job Venkat…

  3. joseph oyila says:

    yes, l support what Jahangir Satti said l have made that suggestions
    several times,that is only small way will can support and make the lecture
    go in,and l no people will contrigiute happily , so pls KUDVENKAT do it,
    they community are ask u to do this 

  4. taleofsixstrings says:

    Hello Sir, can you please elaborate more on why structs can’t have
    parameter-less constructors… didn’t quite get it… thanks :D

  5. Zack McVey says:

    what is a good site to download the software for C #

  6. mhine7536 says:

    hello… im just asking what are codes in voting system where you cannot
    vote twice.. and your next vote will be on next election.. is it with the
    use of timer??? thanks to those who will response… 

  7. Aidin Haghparast says:

    Just wanted to say Thank you for your time and effort 

  8. Vaidas Cesonis says:

    Hi, Venkat.
    Thank you for your time spent on these series.

    I thought, that this information bellow, will be useful with this movie:
    You can’t declare a default constructor (a constructor with no parameters)
    for a structure. The following example would compile if Time were a class,
    but because Time is a structure, it does not:
    struct Time
    {
    public Time() { … } // compile-time error

    }
    The reason you can’t declare your own default constructor for a structure
    is that the compiler always generates one. In a class, the compiler
    generates the default constructor only if you don’t write a constructor
    yourself. The compiler-generated default constructor for a structure always
    sets the fields to 0, false, or null—just as for a class. Therefore, you
    should ensure that a structure value created by the default constructor
    behaves logically and makes sense with these default values.

    From Microsoft Visual C# 2012 Step by Step

  9. Oumarou Coulibaly says:

    hi, could you give me the role of controls below:
    * FlowLayoutPanel
    * GroupBox
    * Panel
    * SplitContainer
    * TabControl
    * TableLayoutPanel
    I specify that I am a beginner in programming so please be indulgent.
    NB: I’m using Visual C # 2010 Express
    if possible so I can have a little demo.

  10. Paul Robinson says:

    Great tutorial, thanks for posting:)

  11. Rajan Sri says:

    Thank You So much Venkat. We really really appreciate your help

  12. Zoooh says:

    17:02 was funny. Class became checked ass

  13. Rommel Cadaing says:

    hi Sir, b4 anything else i would like to thank you the series of video
    tutorials from you. it really helps people like who is new in programming
    C# , if it possible can you create a tutorial for socket programming in C#
    . thanks in advance

  14. joseph oyila says:

    yes, l support what Jahangir Satti said l have made that suggestions
    several times,that is only small way will can support and make the lecture
    go in,and l no people will contrigiute happily , so pls KUDVENKAT do it,
    they community are ask u to do this make a website and put a placeholder
    for donation

  15. alaa mousa says:

    great teacher

  16. Abhi Mishra says:

    Hello Sir, I have a question for you.. pls help me out!!! Customer C2=C1;
    My question is that which object both of these ref var are pointing at, is
    that object being referenced by C1 or C2 ?? i am confused coz we created
    two instances of class customer class C1 and C2, which means two different
    objects would be created right? I couldn’t figure out, which object are
    they pointing at. I would really appretiate, if you pls help me out on that
    issue. Thank You.

  17. Scott Mitchell says:

    Thanks your series of c# videos have been a great help

  18. Monica Pipi-vadia says:

    What are the availability on difference / equality

  19. Abhi Mishra says:

    Thnx bro.

  20. Dave @ Interact RDT says:

    Hi Venkat, I’ve run into a problem in my code. I’m passing a List from one
    class to another, and in the second class I need to modify the list.
    Because class is reference type, the list contents are modified. I thought
    to use a struct, but my second class also requires a derived class, and
    since structs don’t allow inheritance i’m a bit stuck. What would you
    suggest?

  21. treasure2387 says:

    // You have no conrol over the garbage collector, it runs behind the
    scenes. // The data type int is a struct // S1 = S2 // If S1 and S2 are
    stuct then S1 and S2 will be 2 different objects on the stack but with the
    same values

Leave a Reply to Abhi Mishra Cancel reply

Your email address will not be published. Required fields are marked *