Cadence Design Systems interview question

OOPs with C++