What is the Difference between Overriding and overloading?
Answer Posted / nazrul
overriding->
1) method should be public.
2)it need inheritance.
3)it need virtual keyword before it declartion.
4)it have same name with same parameter in diffrent class.
5)it require non-static method.
6)method should have same datatype.
Overloading->
1)method can be different access speicifier.
2)it doesn't need inheritacne.
3)all method should be in same class.
4)method can have diffrent datatypes
| Is This Answer Correct ? | 88 Yes | 8 No |
Post New Answer View All Answers
What is the advantage of using system.text.stringbuilder over system.string?
What is sorting in vb?
Explain i.tostring method?
What is the diff between vb mdi form and .net mdi form?
What is vb.net used for?
What is a preprocessor directive in vb.net?
Explain the difference between system.string and system.stringbuilder classes?
Observations between vb.net and vc#.net?
Explain the observations between vb.net and vc#.net?
Explain about jagged arrarys ?
what is commom language runtime?
When do you use virutal keyword?
Explain how to store decimal data in .net?
write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.
Explain about visual basic.net?