If it is not a good idea, Why isn't it? && suggest a better way to represent network packets in a simulation.Code:namespace a { class A {.........}; } namespace b { class A : public a::A {...}; } namespace c { class A : public b::A {...}; } //and so on..for a few more times.