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
What is public assembly?
Explain the difference between thread and process?
What are the differences between c# and visual basic.net?
What is the difference between c# and vb.net?
So you know which dll is used for microsoft .net run time?
What is pre-jit?
What are the features of c# which are not present in vb.net?
How do you call a stored procedure in Visual Basic?
How do you retrieve the customized properties of a .net application from xml .config file?
What is the size of .net object?
hello thank you for replying to my question regarding adding barcode fonts in vb.net project. I have downloaded a free font and added in my vb.net project but now i dont know how to use that i need to generate barcodes can any body help me how to use those fonts these are font3of9 .i need a small code to use these fonts to generate barcode thank u!
Explain the difference between datatable and dataset?
source code for how to login a vb.net application ?
What is the main purpose of garbage collector?
How many languages are supported by .net?