![]() |
![]() |
![]() |
Using Default Property : You must code the property to take atleast one argument and you must specify public, protected or Friend access. Default public Property Item( By Val index as Integer) AS Boolean Get Return myArray(index) ' uses a private module-level array End Get End Property Using attribute :- You can use attribute to provide extra information or meta data to the developer by using angular brackets (<and>) <Obsolete("Use method M2") public sun M1() 'Result in warning in IDE when used my client code End sub Overloading :- Method with the same name accepts different parameters and acts accordingly. In short it provides If parameter then ... else if(parameter) then ... else.... It allows multiple methods to have same name but different parameters. For overloading method signature must be unique. You can achieve this by changing the number of parameters or changing the data type. |