Results 1 to 7 of 7

Thread: are classes always needed in your programs

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    are classes always needed in your programs

    Hello

    I have just started learning how write classes in vb.net. I never used classes when l used vb6. My question is, is it always important to write classes in your vb applications. I wrote classes when l programmed in C++, but not sure if it is essential to write classes in VB.Net.

    Where can l find a good website that gives good lessons on writing and using classes in VB.Net

    Many thanks in advance

    Steve
    steve

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    No, not necessarily. Unless you are wanting to have some sort of specific functionality which isn't covered by VB.NET's built-in classes. It really depends on what you are wanting to create and work with.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    i dont think you really use in c++ the class's power otherwise i think u'd never make such a question..maybe you should read again your oop book or maybe you just dont feel confortable i dont know..it just organizes everything up
    \m/\m/

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You can not write a .Net application without a class from my understanding. The form is a class, the module is a class, everything is a class. Even if you don't see it, it is a class.

  5. #5
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    exactly, and if you create many classes you can get an seamless integration with the ms's framework what is very cool isntead of having 1000 functions that have no relationship between them
    \m/\m/

  6. #6
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    How do you get re-usability if you don't use classes? I ALWAYS use classes. Like previous posts, just about everything in .NET is a class (at least behind the sceens).

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Yes, you need classes, EVERYTHING is a class in .NET. The forms are classes, modules are static/shared classes and classes are classes.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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