What is shadowing
What is shadowing ?
When two elements in a program have same name, one of them can hide and shadow the
other one. So in such cases the element which shadowed the main element is referenced.
Below is a sample code, there are two classes ClsParent and ClsShadowedParent. In ClsParent there is a variable x which is a integer. ClsShadowedParent overrides ClsParent and shadows the x variable to a string
Public Class ClsParent Public x As Integer End Class Public Class ClsShadowedParent Inherits ClsParent Public Shadows x As String End Class
2007-10-23, 6328👍, 0💬
How To Set session.gc_divisor Properly? - PHP Script Tips - Understanding and Using Sessions As you ...
Once I have developed the COM wrapper do I have to still register the COM in registry? Yes.
What is the main difference between a Vector and an ArrayList? Java Vector class is internally synch...
How comfortable are you with writing HTML documents entirely by hand? Everyone has a different prefe...
How do we create DCOM object in VB6? Using the CreateObject method you can create a DCOM object. You...