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-II.
1) What is a constructor & types of constructors?
2) Difference between static and instance constructors?
3) How to a create object for the class?
4) how to call a method?
5) What is static attribute & method?
6) Can we instantiate a class within implementation of other class
7) Can we put non declarative statement e.g. START-OF-SELECTION within a class?
8) How to create a global class?
9) How can we pass importing parameter?
10) Can we pass returning parameter by reference?
11) Can a method call itself?
12) What is me variable?
13) Can we have export parameter in Instance constructor?
14) What is an abstract class?
15) What is final class & Method?
16) What is an interface?
17) Can we implement interface in private section of any class?
18) What is alias?
19) What is a friend class?
20) How to create an object for private class?
21) What is a Single-ton class?
22) What is a Persistent class?
23) What is inheritance?
24) What are the visibility sections visible to subclass of superclass?
25) Can we declare same name for components of subclass as components of super class?
26) What is single inheritance?
27) Does OOABAP supports multiple inheritance?
28) What is the root node of all inheritance trees?
29) How can we re-implement super class method in subclass?
30) Can we change the parameter interface of the redefined methods?
31) How to call original method from redefined method?
32) What is an abstract class?
33) Can abstract methods be redefined?
34) Can final class methods be redefined in the subclass?
35) Can static method be redefined?
36) Can we change the visibility of the redefined method?
37) Can the private and protected classes can be inherited?
38) Does the instantiation of Subclass depend on the super class?
39) Can the constructor be redefined?
40) Does the parameter interface of the instance constructor be changed in the subclass?
41) Do we need to call the super class instance constructor in the subclass when instance constructor is redefined?
42) In which order the constructors execute in inheritance tree?
43) Can we call the instance constructor of the super class in sub class?
44) Can we call the static constructor of the super class in sub class?
45) What is polymorphism?
46) What is Narrowing cast(Upcast)? Explain briefly?
47) What is the use of Narrowing cast?
48) Which components of sub class can be accessed from super class reference using narrowing cast?
49) What is Widening cast ( Down casting)?
50) What is the use of Widening cast?
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.