Results 1 to 2 of 2

Thread: What is a 'sub-class' mean

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    What is a 'sub-class' mean

    I was going thru a book and he wrote a class in a class and it looked it like this..

    Public class Request
    Public class parameter
    private m_paramName as string
    private m_Paramvalue as string

    Public property ParamName as string
    ....
    ....
    end property

    End class

    End class

    What does it mean by subclass? I am seeing the subclass first time...any advantages?

    thanks

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Generally the .NET term subclass means a class that inherits from another class. Placing the class inside another one is not the same as inheriting from it though. Placing one class inside another isn't much different than placing it outside the class, except that it changes the namespace or the nested class and the nested class can access any shared private variables in class its nested in. When a class is derived or a subclass of another it automatically gets all of the parent or superclass' properties, methods, and events.
    Last edited by Edneeis; Dec 3rd, 2003 at 06:07 PM.

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