Can this be an example of polymorphism in Javascript

前端 未结 0 1306
面向向阳花
面向向阳花 2020-12-20 21:50

I have a very basic question on trying to achieve polymorphism using JavaScript. Can the below example be considered polymorphism?

var self = {};
self.attr =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题