Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6085531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:38:57+00:00 2026-05-23T11:38:57+00:00

Could anyone just enlighten me on the main differences in C# between enumerations, structs

  • 0

Could anyone just enlighten me on the main differences in C# between enumerations, structs and classes? I usually just use classes for this type of code but never really seen the need to use the others?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:38:58+00:00Added an answer on May 23, 2026 at 11:38 am

    Refering to :

    Introduction to Objects and Classes in C# – Introduction

    Introduction to Objects and Classes in C# – World’s Classes and Objects

    In Object-Oriented Programming
    programmers write independent parts of
    a program called classes. Each class
    represents a part of the program
    functionality and these classes can be
    assembled to form a program.

    In our world we have classes and
    objects for those classes. Everything
    in our world is considered to be an
    object. For example, people are
    objects, animals are objects too,
    minerals are objects; everything in
    the world is an object. Easy, right?
    But what about classes?

    In our world we have to differentiate
    between objects that we are living
    with. So we must understand that there
    are classifications (this is how they
    get the name and the concepts of the
    Class) for all of those objects. For
    example, I’m an object, David is
    object too, Maria is another object.
    So we are from a people class (or
    type). I have a dog called Ricky so
    it’s an object. My friend’s dog, Doby,
    is also an object so they are from a
    Dogs class (or type).

    A Struct is similiar to class with several differences.

    Refering to Structs

    A struct is a value type. To help
    understand the struct, it’s helpful to
    make a comparison with classes. While
    a struct is a value type, a class is a
    reference type. Value types hold
    their value in memory where they are
    declared, but reference types hold a
    reference to an object in memory. If
    you copy a struct, C# creates a new
    copy of the object and assigns the
    copy of the object to a separate
    struct instance. However, if you copy
    a class, C# creates a new copy of the
    reference to the object and assigns
    the copy of the reference to the
    separate class instance. Structs can’t
    have destructors, but classes can have
    destructors. Another difference
    between a struct and class is that a
    struct can’t have implementation
    inheritance, but a class can…

    Enumerations are essentially unique types that allow you to assign symbolic names to integral values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Django and just just got django-registration up and running. Could anyone
just wondering if anyone could suggest why I might be getting an error? I'm
I’m just wondering if anyone’s come across or could recommend an IDE that’s capable
Could anyone could point me to some code/give me ideas on how to create
Possible Duplicate: curly braces in string Just came across this piece of code and
Could anyone please give me an example in this? I have found many but
Could anyone tell me when we use the AppDelegate.m and AppDelegate.h during iPhone programming?
Could anyone give me a small and simple example of how to do this?
I just want to match the first instance, could anyone let me know how
Could anyone point me in the right direction on this. I have 20+ weeks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.