SAP Abap Latest Interview Questions

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 17
At a glance
Powered by AI
The document discusses various concepts related to object-oriented programming in ABAP such as classes, objects, inheritance, polymorphism etc.

The R/3 basis system guarantees the integration of all application modules.

Object orientation (OO), or to be more precise, object-oriented programming, is a problem-solving method in which the software solution reflects objects in the real world.

SAP ABAP

Interview Questions
www.garudatrainings.com

1. What guarantees the integration of all


application modules?
The R/3 basis system guarantees the integration of all application modules. The
R/3 basis s/w provides the run time environment for the R/3 applications ensures
optimal integration, defines a stable architectural frame for system enhancements,
and contains the administration tools for the entire system. One of the main tasks
of the basis system is to guarantee the portability of the complete system - See
more at: http://www.saptechies.org/1000-sap-abap-interview-questionsanswers/#sthash.vIMlGFF3.dpuf

www.garudatrainings.com

2.What
OOPS
1. Objectis
orientation
(OO), ABAP
or to be more?precise, object-oriented programming, is
a problem-solving method in which the software solution reflects objects in the
real world.
2. A comprehensive introduction to object orientation as a whole would go far
beyond the limits of this introduction to ABAP Objects. This documentation
introduces a selection of terms that are used universally in object orientation and
also occur in ABAP Objects. In subsequent sections, it goes on to discuss in more
detail how these terms are used in ABAP Objects. The end of this section
contains a list of further reading, with a selection of titles about object
orientation.

www.garudatrainings.com

3.What
thea blueprint
Difference
Class
and
A Class is is
actually
or a template between
to create an Object.
Whereas an
Object is
a an actual instance
Object
? of a Class. For example Employee ia a class, while John is a real
employee which is an Object of Employee Class.

www.garudatrainings.com

4.How
polymorphism
can
be
implemented
?
Some examples to implement polymorphism:
1.Method Overriding
3.Operator Overloading
4.Method Overloading

www.garudatrainings.com

5.What is Inheritance ?
In OOPs terminology, inheritance is a way to form new classes using classes that have
already been defined. Inheritance is intended to help reuse existing code with little or
no modification. The new classes, known as derived classes, inherit attributes and
behavior of the pre-existing classes, which are referred to as base classes.

www.garudatrainings.com

6.What
is Method Overriding ?
1. Method overriding allows a subclass to override a specific
implementation of a method that is already provided by one of its super
classes.
2. A subclass can give its own definition of methods but need to have the
same signature as the method in its super class. This means that when
overriding a method the subclass's method has to have the same
name and parameter list as the super class's overridden method.

www.garudatrainings.com

7. What is Method Overloading ?

Method overloading is in a class have many methods having same name but
different parameter called overloading or static polymorphism

www.garudatrainings.com

8.What is Aggregation ?
Aggregation is a special form of association. Aggregation is the composition of
an object out of a set of parts. For example, a car is an aggregation of engine,
tyres, brakes, etc.
Aggregation represents a "Has" relationship like a car has a engine.

www.garudatrainings.com

9.What is object oriented programming


Object oriented programming language allows concepts such as abstraction,
language
?
modularity, encapsulation, polymorphism and inheritance. Simula is the first
object oriented language. Objects are said to be the most important part of object
oriented language. Concept revolves around making simulation programs around
an object.

www.garudatrainings.com

10. What
are the
core
ABAP
oops
1. Inheritance:
Inheritance
is the
ability of an
object to inherit the
properties and methods of another object. This characteristic leads to
concepts?
the creation of families of objects (just like families exist for humans)
with parent objects and child objects.
2. Polymorphism: Polymorphism is about an objects ability to provide
context when methods or operators are called on the object.

www.garudatrainings.com

11. What
is UML ?
1. UML (Unified Modeling Language) is a standardized modeling
language. It is used for the specification, construction, visualization
and documentation of models for software systems and enables
uniform communication between various users.
2. UML does not describe the steps in the object-oriented development
process.
3. SAP uses UML as the company-wide standard for object-oriented
modeling.
4. UML describes a number of different diagram types in order to
represent different views of a system.

www.garudatrainings.com

12. What
arearethe
types
of Instance
Objects
and
In general there
two types
of Objects:
Object and
Static Object
and as such there?are two types of Classes: Instance class and Static Class.
Classes
Specifically when it comes to visibility, Private class, Protected class and
Public classes are the types of classes one can have.

www.garudatrainings.com

13.What
are the types of classes which can
We can create four types of classes under final and only modeled
be
created with
? the private, protected, public and abstract
category(optional)
instantiation.
Usual Abap Class.
Exception Class(With/Without messages).
Persistent Class.
Test Class(ABAP Unit).

www.garudatrainings.com

14. What are the types of classes which can


We can create four types of classes under final and only modeled
be
created ?
category(optional) with the private, protected, public and abstract
instantiation.
Usual ABAP Class.
Exception Class(With/Without messages).
Persistent Class.
Test Class(ABAP Unit).

www.garudatrainings.com

15. What is a reference variable ?

Objects can only be created and addressed using reference variables.


Reference variables allow you to create and address objects. Reference
variables can be defined in classes, allowing you to access objects from within
a class.

www.garudatrainings.com

Contact us For More Stuff:

www.garudatrainings.com
Mail

: [email protected],
[email protected]

Phone : +1(508)841-6144

www.garudatrainings.com

You might also like