Answer Posted / rohit
Whatever the code written by Sonia.sardana is shows the
shadowing concept but there is some print mistakes in the
code.The correct code is---
imports system
module m1
public class base
Public Sub test()
Console.WriteLine("sonia")
End Sub
Public Sub test(ByVal i As Integer)
Console.WriteLine(i)
End Sub
End Class
Public class derived
inherits base
Shadows Sub test(ByVal x As Integer)
Console.WriteLine("Shadow method")
End Sub
end class
Sub main()
Dim obj As New derived
obj.test() 'This will show error
obj.test(10) 'This is valid
End Sub
end module
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
What is enumerator?
What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?
What is the strong name in .net assembly?
What is intermediate langauge?
What is a static variable?
how many server control present in .net
Explain about the feature anonymous type?
What do you mean by deserialization?
What are the assembly entry points?
What is the purpose of an Assembly?
what is common type system?
Explain and brief about rapid application development tool?
How vb implements the disconnected architecture as like vb.net?
What is the difference between Namespace and Assembly?
What do you mean by option strict on?