Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22310

Print all inherited class member variables and methods

$
0
0

Suppose I have inheritance like below:

class A{public:A(){}int s;void Show(){}};class B : public A{public:B(){}int y;void MyShow() {}};int main(){B b;}

Is there a way that I can know by any mechanism [runtime/debug] etc what are the member variables / methods of object b - I mean complete list along with all it inherited?


Viewing all articles
Browse latest Browse all 22310

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>