Answer Posted / sonia.sardana
If there are overloaded methods in the base class, & u
marks one of the methods as shadows using the keyword
shadow in the derived class, then we cannot access the
overloaded methods.
Ex-
public class base
public sub test()
console.writeline("sonia")
end sub
public sub test(i as integer)
console.writeline(i)
end sub
end class
public sub derived
inherirts base
shadows sub test(x as integer)
console.writeline("Shadow method")
end sub
end class
sub main()
dim obj as new derived
obj.test()-->Invalid
obj.test(10)-->Valid
end sub
Is This Answer Correct ? | 22 Yes | 5 No |
Post New Answer View All Answers
Explain the difference between web.config and machine.config and where it will be ?
Write a VB.Net console program to check whether a number is perfect or not.
Explain enumerator?
Explain the advantages of vb.net?
What is the strong name in .net assembly?
thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net
What is strong name in .net assembly?
Explain what observations between vb.net and vc#.net?
Using VB, how can you change the Mouse Pointer?
What is a static class?
Why do you need Lock in Visual Basic?
Define naming convention?
Explain nested classes?
how many server control present in .net
What are the differences between server-side and client-side code?