Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Instance

Instance

Scheduled Pinned Locked Moved Visual Basic
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    roger6897
    wrote on last edited by
    #1

    How can 'Instance' be best explained in Visual Basic

    C 1 Reply Last reply
    0
    • R roger6897

      How can 'Instance' be best explained in Visual Basic

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      roger6897 wrote:

      How can 'Instance' be best explained in Visual Basic

      Well, it depends on what you mean by "instance"? I'm guessing you mean in terms of object oriented programming (OOP) An object is an instance of a class. A class is a type. You create a new instance of a class with the New keyword.

      Dim w As Widget = New Widget(someParameter)

      w is the reference to the object (the instance of the class. Widget is the name of the class New instantiates the instance of the class. Does that answer your question?

      Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * The Value of Smaller Methods My website | blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups