Problem with Inheritence

In reply to Ravi007:

Use the conditional compilation. Like given below:

`ifndef <class name>
`define <class name>
...
... //Here goes the code
...

`endif