access member error

existen existenpas at mail.ru
Fri Sep 3 00:36:11 PDT 2010


I've got 2 classes:

class A {
	private int _x = 5;
}

class B : A {
	void output() {
		writeln(_x);
	}
}

When I call
(new B).output()
there is no compile-time or run-time errors. Is it correct?


More information about the Digitalmars-d-bugs mailing list