Object oriented programming is one of the most popular methodologies in software development in SAP ABAP. Object Oriented offers a powerful model for creating computer programs. OO Programming speeds the program development process improves maintenance and enhances reusability of programs. This post gives the list of Interview questions on Object Oriented Programming in SAP ABAP part-III.
1) What is an Interface?
2) Can we instantiate the interface?
3) Can we achieve multiple inheritance using Interfaces?
4) Can we assign values to attributes of interface inside interface?
5) Does polymorphism achieved through interfaces?
6) Where can an interface be implemented in the class?
7) Is it mandatory to implement all methods of interface in the class which includes interface?
8) What is the difference between abstract class and interface?
9) What is alias?
10) Can we make methods of interface as abstract and final?
11) Can we do upcast and downcast using interface references?
12) Can we declare events in interface?
13) Can we raise events in interface?
14) Can abstract class can only be accessed using its static components or its subclasses.?
15) What is a single-ton class?
16) What are the differences between Abstract Class and Interface?
17) What is the purpose of the Read-only addition on the data statement in a class definition?
18) What is the difference in attributes defined in the public versus private section of a class?
19) What is the keyword used to define static attributes?
20) What is the difference in an instance method and a static method?
21) What statement is used to instantiate an object?
22) what is the purpose of garbage collector?
23) When is the constructor method is executed?
24) Is multiple inheritance is possible in ABAP objects?
25) Static methods can be redefined ?
26) A constructor method can be redefined ?
27) What is a redefined method?
28) What is a SUPER reference?
29) What is class?
30) What is object?
31) Can we instantiate a class within implementation of other class?
32) What is deferred key word ?
33) Can static method use instance attribute ?
34) Can a method call itself?
35) What is preferred parameter ?
36) can we pass returing parameter by reference ?
37) What is ME variable?
38) What are type of constructor and explain them?
39) Can we have export parameter in Instance constructor?
40) Can instance constructor raise exception ?
41) Can we have static methods in interface?
42) What is interface ?
43) Is it mandatory to implement all the methods of interface ?
44) What is alias ?
45) What is Friendship?
46) Can we have more than one event handler method for same event ?
47) Can event have import parameter ?
48) Can we call static constructor more than once in a program?
49) How can we pass importing parameter ?
50) Can we implement interface in private section of any class ?
51) which of the following are correct ?
52) Static attributes are visible in all classes in the inheritance tree?
53) Can we put non declarative statement e.g. START-OF-SELECTION within a class?
Dear ABAPers if you know any answers please provide in the below comment box.
"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.