Ads

SAP ABAP OOPs Concepts Interview Questions Part Four

SAP ABAP OOPs Concepts Interview Questions Part Four

In the previous Lessons ,i have shared Import OOPs interview Questions and answers and in this part i have shared some more important OOPs concepts questions and answers and additional sample questions for freshers and experienced consultants.

When we are using the overriding in Object oriented programming?


Sometimes,we need to extend the functionality of the inherited method ,then overriding is used.

What is narrow casting and when we are using it?


Narrow casting is assigning the instance of subclass back to instance of the super class that we are using it when we are giving the more importance of child object than the super class object.

What is widening cast and when we are using it?


Widening cast is assigning instance of the super class to subclass and it is used when we require to access the specific functionality of the subclass from the super class.


What are the constructors in OOPs?


Constructor Constructor will be cllaed ,when we are accessing the object using CREATE OBJECT statement.

CLASS_CONSTRUCTOR is the static constructor which is called when first time class is instantiated.


What is the friends statement in OOPs?

We can access the private and protect attributes from other classes using freinds statement.


Can we override(Redefine) static method ?


We can't.


What is static and instance method?

Static methods are methods which can be called irrespective to the class instance. 

Instance methods are methods which can be ONLY called using the object reference. 



What is Overloading in OOP ?

The method having same name with different arguments 

What is the difference between overloading and overriding ?


Overloading meant the same method with different arguments , and it may or may not return the same value in the same class itself.
Overriding is the same method names with same arguments and return types associates with the class and its child class.


What Is Super Keyword?


Super keyword used to access overridden methods and also to access hidden members of the super class.


What is the default access modifier in a class?


The default access modifier of a class is Private by default.


Do we require parameter for constructors?


We do not require parameter for constructors.

Read more....



SAP ABAP OOPs Interview Questions and answers

OOPs Real time interview questions faced in different interviews.

What are the types of Inheritance ?
What is single Inheritance and Multi-Level Inheritance in OOABAP ?
Can we have Multiple Inheritance in OOABAP ?
Can we have Multiple Super Classes for one SubClass in OOABAP ?
What is Inheritance Hierarchy ?
Difference between Abstract Class and Interface ?
What is the similarity between Abstract class and Interface ?
What is the use of Abstract Class ?
What is the use of an Interface ?

What is the purpose of creating Aliases ?
What is Abstract method ? When we create Abtract Method ?
What should be the visibility of Abstract Methods in Abstract class ?
What should be the visibility of methods in an Interface ?
What is the use of Constructor ?
What are the types of Constructors ?
Difference between Static Constructor and Instance Constructor ?
What is the purpose of Destructor ?
What is the Use of "REDEFINITION" keyword ?
What is the use of "SUPER" keyword ?
In Which situation we use "REDEFINITION" keyword ?

In Which situation we use "SUPER" keyword ?
Can we make Sub class as Super Class or not ?
What is the Difference between "Method" and "Constructor" ?
What are the various parameters we use for Method in OOABAP ?
Can we create method to have multiple return type Parameters ? How ?
Can we restrict a method to have only single return type parameter ? How ?
In how many ways we can call "Instance method" in OOABAP ?
In how many ways we can call "static method" in OOABAP ?
Can we access instance attributes from Static constructor ?
What is Type Casting ?

How many types of TYpe Casting Exists in OOABAP ?
Difference between Narrow Casting And Wide Casting in OOABAP ?
Difference between UPCasting and Downcasting in OOABAP ?
Can we Implement Multiple Interfaces in single Class ?
How to achieve Multiple Inheritance in OOABAP ?
What is Polymorphism ?
What are the Various techniques used to Achieve Polymorphism ?
What is Method Overloading and Method Overriding ?
Can we use Method Overloading in OOAABAP ?
How to Achieve Polymorphism in OOABAP ?

Difference between Local Class and Global Class ? 
What are the Advantages of OOABAP in SAP Development environment ?
Difference between OOABAP and other Programming Languages ?
What is the Transaction code for Global and Global Interfaces ?
Difference between Implicit Objects and Explicit Objects ?
What are the Examples of Implicit objects ?
What is Final Class ?
How to Stop/Restrict Polymorphism in OOABAP ?
What is Final Method ?
What is the use of Creating Final Class ?
What is the use of Creating Final Method ?
What is Friend Class ? When we use Friend Class ?
How to Stop/Restrict Inheritance in OOABAP ?

What is Inheritance ?
What is the difference between CLASS , OBJECT and INTERFACE ?
Can we create an Object for Abstract Class ? If No, Why ?
Can we create an Object for Interface ? If No, Why ?
What are Concrete methods in OOABAP ?
What are Non-Concrete methods in OOABAP ?
For What type of Classes we create an Object in OOABAP ?
Can we create an Object for Final Class ? 
Can we Override the Final Method in OOABAP ?
What are Exceptions ?

How to call method if method contains Importing parameters and Exporting parameters" ?
In which situation we use "Receiving Parameter" in method call ?
Can we have Exporting Parameters in Constructor definition ?
Can we have Importing Parameters in Constructor definition ?
What are CLASS Attributes or CLASS Variables? Static attributes are also called as Class variables?
How to Handle Exceptions in OOABAP ?
What are CLASS Methods ? Static Methods are also called as CLASS Methods ?
What is singleton Class ?

Can we access Protected section Methods of Se24 class in WebDynpro ABAP ?
What are the various components of a Class ?
Can we Design ABAP Interactive Reports using OOABAP  ? How ?
Can we access Static methods of class without creating Object or not ? If Yes , How ?
Can Contructor return values ?
What are the main features of OOABAP ?
What is the Use Of "ME" keyword ? It's a Self Reference.What is the use of ?= ( Type cast operator ) in OOABAP ?

Difference between Design Time errors and Runtime Errors in OOABAP ?
What is the use of TRY-CATCH Blocks in OOABAP ?
Can we have Multiple Catch Blocks in OOABAP ?
Can we define Abstract Methods in Private section? If No, Why ?
Can we define Interface Methods in Private section or Protected section? If No, Why?
Difference between "Returning Parameter" and "Exporting Parameter" ?

Can we Inherit Final class in Sub class or not ?
Can we Call Constructor explicitly?
What is the difference between "Public section" , "Protected Section" & "Private  Section"?
Difference between procedural oriented and object oriented approach.
Advantages and use of Object oriented concept related to ABAP.
Different features of OO ABAP.


Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced