I have 2 Sub-Classes B and C Under A.
I have Created a State (let say "test" and Method "setTest") using Usesate Hook. and i create one more Function