V
V
Vusal Guseynov2015-04-03 21:11:56
Programming
Vusal Guseynov, 2015-04-03 21:11:56

Is it possible to access private fields of a base class without using base class methods?

Hello!
Help the poor student, stuck on such a problem that you need to access the hidden fields of the base class without using the methods of this class, is this even possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2015-04-04
@index0h

Google "reflection"

A
AxisPod, 2015-04-06
@AxisPod

Everything is possible, but not the fact that it is simple. You can define offsets inside an object and access memory directly, no one forbids this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question