Results 1 to 2 of 2

Thread: What is a Class?

  1. #1

    Thread Starter
    Registered User
    Join Date
    May 2013
    Posts
    1

    What is a Class?

    I've been Google-ing a lot, but still I didn't understand what a class actually is. Can somebody explain it to me? Please be detailed.

    Thank you.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: What is a Class?

    It's a template for an object. Think of standard role-playing games. They have character classes including Mage, Warrior and Cleric. They use class in the same sense as programming, i.e. characters are classified as either Mage, Warrior or Cleric. You can't use those classes in the game. You have to create a character first. Each character you create is either a Mage, a Warrior or a Cleric. The characters are like objects in programming. An object is an instance of a class, i.e. an embodiment of the template described by the class. Each object has values for the properties defined by the class and can execute the methods defined by the class.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Click Here to Expand Forum to Full Width