enforce a "this" "base" during compile-time visible studio/c#
when fluctuating classes, i unequivocally detailed base (mybase vb) keyword accessing methods base-class. this (me vb) keyword accessing functions category fluctuating base-class. goes "flat" structure estate well.
i easier review this:
public category world
{
open twine basename = "world";
}
public category hello : world
{
open twine thisname = "hello";
open twine getnames()
{
relapse this.thisname + " " + base.basename;
}
}
than this:
...
open twine getnames()
{
relapse thisname + " " + basename;
}
...
now, doubt is: illusory make this base during compile-time visible studio/c#, compiler throws an blunder warning keywords your code?
Comments
Post a Comment