OOP design & design patterns in ABAP
Inheritance, polymorphism, abstract and final classes, interfaces vs abstract classes, events, friends, SOLID in ABAP, and the design patterns ABAP interviews cover (factory, singleton, strategy, observer, decorator, MVC, dependency injection for testability).
Start with question 1
34 questions, in the order to study them. 5 free, 29 in Pro (see plans). How we order them
As you check answers, each question gets a mark: done, due, missed.
8 · Learn early 1 question
8 of 10, full marks on three or more checks, with interview evidence.
6 · Important 3 questions
6 of 10, full marks on at least one check (the most a practice question can reach).
- What is the difference between a class and an object in ABAP Objects, and what actually happens when you write NEW?
- Explain the four pillars of object-oriented programming with one real business example in ABAP, not textbook definitions.
- Static versus instance attributes and methods: what can each access, how long does static data live, and when would you make a method static?
4 · Good to know 5 questions
4 of 10.
- A subroutine, a function module and a class method: how…Pro
- Static type versus dynamic type: when do you need a…Pro
- Your team's ZIF_DOCUMENT interface has grown to 22 methods, and…Pro
- Explain PUBLIC, PROTECTED and PRIVATE sections, the READ-ONLY addition and friends. How do you decide where a component goes?
- How do package interfaces and use accesses enforce encapsulation between…Pro
3 · Later 4 questions
3 of 10.
2 · Later 14 questions
2 of 10.
- Explain the MVC pattern. Where do you meet it in…Pro
- A class with AMDP methods must implement IF_AMDP_MARKER_HDB, an interface…Pro
- ZCL_CREDIT_CARD_PAYMENT and ZCL_INVOICE_PAYMENT inherit from ZCL_PAYMENT. A new subclass ZCL_VOUCHER_PAYMENT…Pro
- What do ABSTRACT and FINAL do on classes and on…Pro
- How do events work in ABAP Objects, how would you…Pro
- What is the difference between a global and a local…Pro
- Where is object orientation no longer optional in modern ABAP…Pro
- The class to instantiate is only known at runtime, for…Pro
- Every user session loads the same 200,000-row price table, and…Pro
- Timed drill, 20 minutes in ADT: define a shipping-cost interface…Pro
- Timed drill, 25 minutes in ADT: a reader method must…Pro
- Dependency inversion versus dependency injection: what is the difference, and…Pro
- Timed drill, 25 minutes in ADT: ZCL_DISCOUNT_SERVICE takes a ZIF_CUSTOMER_REPO…Pro
- A long method has a CASE on the sales channel…Pro
1 · Last 7 questions
1 point or none.
- When do you prefer composition over inheritance? Show it with…Pro
- Timed drill, 40 minutes: ZCL_PRICE_CALC calls the static method ZCL_TAX_UTIL=>GET_RATE…Pro
- Singleton or a class with only static methods: what is…Pro
- Three inbound file interfaces all follow the same steps: read…Pro
- Building a valid request object needs ten optional settings and…Pro
- Your new OO code must use an old function module…Pro
- Incoming service tickets must be routed: some rules auto-close, some…Pro