Your question is OOP and TestNG Fundamentals. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Explain inheritance, polymorphism, abstraction, encapsulation, method overloading, and method overriding, and how you apply them in your Java-based QA framework with TestNG (including annotations, priority, parameterization, and @DataProvider).