OLR interview question

Define Interface and abstract class, Write a query to retrieve data from multiple table using Inner Join etc