SAP Abap Latest Interview Questions
SAP Abap Latest Interview Questions
SAP Abap Latest Interview Questions
Interview Questions
www.garudatrainings.com
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
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
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
www.garudatrainings.com
www.garudatrainings.com
www.garudatrainings.com
Mail
: [email protected],
[email protected]
Phone : +1(508)841-6144
www.garudatrainings.com