Hi Sir,
In the Data Driven framework we are making BaseTest class which will have common functions and other classes will be extending the BaseTest class.
As per concept, we go for inheritance when there is "IS A" relationship between the classes. For ex: If we have class car and class vehicle then car class can extend vehicle because car "IS A" vehicle.
When we are extending the BaseTest class in framework, the other class contains functions from BaseTest class but does not have "IS A" relationship with BaseTest.
so, in interview if we are asked about this then how can we answer.
Request you to please help.
Thank you.
[quote:28qf2ufs]When we are extending the BaseTest class in framework, the other class contains functions from BaseTest class but does not have "IS A" relationship with BaseTest.
so, in interview if we are asked about this then how can we answer.[/quote:28qf2ufs]
if you check carefully there will be a "[color=#FF0000:28qf2ufs]IS A[/color:28qf2ufs]" relationship.