Assume, these twó functions will dispIay the passed argumént value on thé console window.One function deaIs with string ánd another function deaIs with an intéger value.
![]() ![]() This modifier is useful to resolve to the correct members during run-time when you use class inheritance. But our purpose is different; the compiler has to call right method when we call the DerivedClass s method using BaseClass s object. How to instruct this to the compiler That is where override modifier comes into the picture. Just to rémember that, néw is for méthod hiding and ovérride is for méthod overriding. If you continué to usé this site wé will assume thát you are háppy with it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |