Home > Net >  C # can rewrite the function?
C # can rewrite the function?

Time:02-28

Similar in js can rewrite the alert directly, only need window. Alert=function (s) {the console. The log (s); } so you can directly turn alert to the console. The log,
C # has a similar capacity?

CodePudding user response:



Don't understand what meaning, is c # programming language, rewriting is not something?

CodePudding user response:

Affirmation is some, parent allowed to rewrite, generally can be rewritten

CodePudding user response:

C # support rewriting, overloading, support, but javascript is not an object-oriented language (object-oriented is false, "based on object language)", the so-called "rewrite" allowed to write a function that is independent of the meaning that is with c # "new function declaration} {" number of syntax, as is object oriented, so in object-oriented systems, which generally should be disabled, and for js programmers, basically didn't understand object-oriented design and development, also it's hard to follow the rules and discipline development,

CodePudding user response:

There are all kinds of rules in object-oriented systems, in a life, for example, suppose, chairman of the company want to change, so if "his" by huawei company according to the structure of the legal framework to automatically transfer (specific extension),

But js is with any one bought 100 shares of huawei "shareholders" can be replaced at any time of the stock of huawei, anyone can at any time when a rogue, system has no unified interface declaration, implementation, operation specification, js programmers are accustomed to the development of pheasants,

CodePudding user response:

Yes, Can, Can
  •  Tags:  
  • C#
  • Related