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. difference between shadows and overloads in vb.net.

difference between shadows and overloads in vb.net.

Scheduled Pinned Locked Moved Visual Basic
csharp
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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir/Madam, I wanted to know the basic difference between shadows and overloads. As show function is predifined.If I use show function in the following way. Private Shadows Sub show() End Sub Private Overloads Sub show() End Sub Please illustrate the difference between them.Also In which situation , I should use shadows and overloads Thanks and Regards Pankaj

    T 1 Reply Last reply
    0
    • A amaneet

      Sir/Madam, I wanted to know the basic difference between shadows and overloads. As show function is predifined.If I use show function in the following way. Private Shadows Sub show() End Sub Private Overloads Sub show() End Sub Please illustrate the difference between them.Also In which situation , I should use shadows and overloads Thanks and Regards Pankaj

      T Offline
      T Offline
      testy_proconsul
      wrote on last edited by
      #2

      For example you have a base class: Public Class Exhibitionist Public Sub Show() End Sub End Class and another class which derives from the Exhibitionist class: Public Class SpecializedExhibitionist Inherits Exhibitionist ---A) Public Shadows Sub Show() End Sub ---B) Public Overload Sub Show( ByVal fullInfo As Boolean) End Sub End Class - with version A) you can call SpecializedExhibitionist_Instance.Show() - with version B) you can call SpecializedExhibitionist_Instance.Show() SpecializedExhibitionist_Instance.Show( true ) Shadows means, that the Function "Show" of the base class is "cloaked" Overloads means, that you add a new "Show" function with other parameters

      solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ...

      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