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 are the features of c# which are not present in vb.net?
Explain nested classes?
What is jagged array in vb.net?
Explain the difference between system.string and system.stringbuilder classes?
Observations between vb.net and vc#.net?
What is redim keyword and its use?
What is an application domain? how they get created?
Name the tool which can convert visual basic old version to .net compatibility version?
What is the difference between readonly variable and constant variable?
How many ways the function can return values?
Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.
What are the various open source tool available for VB.NET?
Explain how to send xml file on server using http protocol?
What is the difference between datagrid and gridview?
Why do we use ansi keyword?