Title is not clear. Here I am explaining
I am having a package say package provide test
. It is having classes
. I am using Itcl
. Package is having following structure
::itcl::class classA {
written something having constructor and methods
}
::itcl::class classB {
inherit ::test::classA
having its own constructor and methods
}
::itcl::class classC {
inherit ::test::classA
having its own constructor and methods
}
::itcl::class classD {
inehrit ::test::classB ::test::classC
having its own constructor and methods
}
When i am requiring package test
, I am getting below error
class "::test::classD" inherits base class "::test::classA" more than once:
How can i handle the error