May 16, 2021

On Sunday, 16 May 2021 at 04:07:15 UTC, frame wrote:

>

But the same with fields work? They are also protected.

I'm not sure what you mean by "fields" here.

May 16, 2021

On Sunday, 16 May 2021 at 04:38:52 UTC, Mike Parker wrote:

>

On Sunday, 16 May 2021 at 04:07:15 UTC, frame wrote:

>

But the same with fields work? They are also protected.

I'm not sure what you mean by "fields" here.

protected:

// inaccessible
/*
void s(int v) {
  _s = v;
}

int s() {
  return _s;
}*/

// no problem here?
int s;
1 2
Next ›   Last »