Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Polymorphism
So... what is the difference between "Virtual", "Abstract" and "Interface"? Although they seem different in definition, but they all carry the same purpose(As I understood). So why defining three, when one of them does the same work as the other? 🤔
2 ответов
+ 1
In interface u put abstract keywords without specifiing them to be abstrac 'cuz they are automatically set ....and the difference betwen virtual and abstract is that in abstract u do not have to pre-define keyword ...both of them work almost the same way... if i remmember correctly
0
yea they are same,... thank you