Looking for SAP Object Oriented ABAP job? Want to change your career to SAP Object Oriented ABAP Consultant? Then wisdom jobs can help you to reach your destination. SAP Object Oriented ABAP is object-oriented programming method to ABAP designed by SAP and traditional method has now become out of date, Everyone who know ABAP and who are learning ABAP should learn the object-oriented method because all the application build by SAP are going to be in ABAP objects, This method is very simple to learn, All the perceptions will be on objects and classes which are very close to the real-life situations. There are several SAP Object Oriented ABAP jobs across the world for the candidates with at least one year of experience. Please go through our SAP Object Oriented ABAP job interview questions and answers page designed by professional experts that can help you to get ready to answer job-related and expected interview questions.
Question 1. Is It Mandatory To Implement All Methods Of Interface In The Class Which Includes Interface?
No it is not mandatory to implement all normal interface methods but it is mandatory to implement all Abstract methods.
Question 2. What Is An Interface In Ooabap?
Interface is class which contains methods without implementations.
Question 3. Can We Instantiate The Interface?
No, we can not instantiate interface using create object keyword.
Question 4. Can We Achieve Multiple Inheritance Using Interfaces?
Yes, by using interface concept in SAP ABAp, we can achieve multiple inheritance
Question 5. Does Polymorphism Achieved Through Interfaces?
Yes, by using interface concept in SAP ABAP, we can polymorphism
Question 6. What Is The Difference Between Abstract Class And Interface?
Abstract class is a class which contains at least one abstract method( Method without implementation), Abstract class contains methods with implementation and without implementation and we cannot create instance for the abstract class .
Question 7. What Is Alias Name In Ooabap?
Alias is an alias name for the interface method implemented in the class .
Question 8. Can We Raise Events In Interface?
No, you can not raise events in interface, Because there is no Implementation for the methods. We can create events in interfaces .
Question 9. What Is A Single-ton Class?
Single-ton class is a class which allows to instantiate once only .
Question 10. What Is The Difference In Attributes Defined In The Public Versus Private Section Of A Class?
Public attributes can be accessed by class, subclasses and other classes where as Private attributes can be accessed by class itself only.
Question 11. What Is The Difference In An Instance Method And A Static Method?
Instance method is available separately in each object (instance), static method is global and no instance is required for static method.
Question 12. What Is A Class In Ooabap?
Class is user defined data type which contains methods, events, attributes, interfaces etc.
Question 13. What Is The Difference Between Singleton And Static Class In Sap Abap ?
Before going to static classes, you should understand static components.
Question 14. Can We Make Methods Of Interface As Abstract And Final In Ooabap ?
No we can not make interface methods as abstract or final in Object Oriented ABAP
Question 15. Can We Declare Events In Interface In Ooabap ?
Yes, we can declare events in interface in Object Oriented ABAP
Question 16. What Is A Singleton Class In Ooabap ?
Singleton class is a class which allows to instantiate(Create Object) only once .
Question 17. What Is A Global Class In Sap ?
Global classes and interfaces are defined in the Class Builder (Transaction SE24) in the ABAP Workbench.All of the ABAP programs in an R/3 System can access the global classes
Question 18. What Is A Local Class In Sap ?
Local classes are defined in an ABAP program (Transaction SE38) and can only be used in the program in which they are defined.
Question 19. What Is An Event In Ooabap ?
Event is a mechanism by which method of one class can raise method of another class, without the hazard of instantiating that class.
Question 20. How To Declare And Raise Events In Ooabap ?
We need to follow below steps when working with events in Object Oriented ABAP:
Question 21. What Is A Constructor Method In Ooabap ?
Question 22. What Is Abstract Method In Ooabap ?
Abstract methods is a method which doesn't contain any implementation.
Question 23. What Is An Abstract Class In Ooabap ?
Question 24. Can We Instantiate Abstract Class In Ooabap ?
Question 25. What Is The Use Of 'defination Deferred' Keyword In Ooabap ?
It is the keyword which indicates the class definition is delayed or postponed or Defined at some place in program.
Syntax : CLASSÂ Â DEFINITION DEFERED.
Question 26. What Are The Advantages Of Oo Alv ?
Some of the main advantages of Object Oriented ALV
Question 27. What Are The Types Of Constructor's In Ooabap ? Explain ?
CONSTRUCTOR's are special type of methods, constructor method is executed automatically whenever a object is created or instantiated.
Question 28. What Is A Polymorphism In Ooabap ?
Polymorphism is a concept by which the same method names will behave differently in different classes i.e each method will have it's own implementation in different classes but with the same name.
Question 29. Can We Defined A Class Without A Constructor In Ooabap ?
Yes, class can be created without any constructor. Default constructor will be created when we define a class without constructor.
Question 30. What Is A Friend Class?
Friend class is a class it can access private components of it’s friends class.
Instead of specifying full name of interface methods, we can assign it a name which can directly trigger.
Question 32. What Is Me Variable?
It just like a selfreference, by this we can call methods that are with in same class with out creating object.
Question 33. How To Create A Global Class?
With tcode SE24.
Question 34. How To A Create Object For The Class?
Data: ref type ref to .
Create object ref.
Question 35. How To Call A Method?
Call method ref>method_name .
Question 36. What Are The Differences Local & Global Classes?
Question 37. What Is The Difference Between Function Group And Classes?
We can create many instances of the same class with in a program, but we cannot create many instances of function group.
Question 38. How Many Types Of Classes Are There In Ooabap?
Question 39. How To Define A Class Locally?
class <cl_name> definition.
Methods: m1 importing p1 type <c>
Exporting p2 type <i>
Changing p3 type <n>
Returning p4 type <i>
Class <c1_name> implementation.
Question 40. How To Create An Object For Private Class?
In general we can not create object for a private class, but we can access static method of a private class so call that method using its class name and import that object.
For example take one static method with an exporting parameter inside private class and write object creation code in that static method and export that object.
SAP Object Oriented ABAP Related Tutorials
|Adv Java Tutorial||SAP ABAP Tutorial|
|SAP ABAP Web Dynpro Tutorial||Software Development Lifecycle (SDLC) Tutorial|
SAP Object Oriented ABAP Related Interview Questions
|Adv Java Interview Questions||SAP ABAP Interview Questions|
|SAP ABAP Web Dynpro Interview Questions||Software Development Lifecycle (SDLC) Interview Questions|
|Sap Abap Hr Interview Questions||SAP ABAP Dictionary Interview Questions|
|SAP ABAP Enhancement Interview Questions||SAP ABAP Module Pool Interview Questions|
|SAP ABAP Report Developer Interview Questions||SAP ABAP Data Dictionary Interview Questions|
|SAP ABAP ALV Reports Interview Questions||SAP Adobe Forms Interview Questions|
SAP Object Oriented ABAP Related Practice Tests
|Adv Java Practice Tests||SAP ABAP Practice Tests|
|SAP ABAP Web Dynpro Practice Tests|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.