SAP Object Oriented ABAP Interview Questions Answers
SAP Object Oriented ABAP Interview Questions Answers
SAP Object Oriented ABAP Interview Questions Answers
Home
SAP
About Us
Privacy Policy
Terms and Conditions
Contact US
Cross Applications
RFC
BAPI
ALE IDOC
Object Oriented ABAP
Web Dynpro
Work Flow
Downloads
Encapsulation:
It means combining data and code that acts up on data into one single unit
of organization, so that both are safe from out side interference. In OOAbap
encapsulation is achieved through classes.
Polymorphism:
It means many forms that mean the same method behaves differently in
different method calls.
Inheritance:
It means deriving a child class from base class; child class acquires all the
properties from base class.
Abstraction:
It simplifies the problem by giving the class its specific class of inheritance.
Composition also helps in solving the problem to an extent.
3. What is a class?
Classes are templates for objects. Conversely, you can say that the type of
an object is the same as its class. A class is an abstract description of an
object.
You could say that it is a set of instructions for building an object. The
attributes of objects are defined by the components of the class, which
describe the state and behavior of objects.
4. What is an object?
An object is a combination of messages and data. Objects can receive and
send messages and use messages to interact with each other. The messages
contain information that is to be passed to the recipient object.
Public class
Private class
Final class
Single-ton class
Abstract class
Persistent class
Friend class
We can create many instances of the same class with in a program, but we
cannot create many instances of function group.
Local classes are defined locally with in a program and the other programs
can’t access the same classes directly.
But global classes are not like that they are globally accessible from ABAP
environment. Global classes are centrally defined in a repository. Transaction
code for global classes is SE24(class builder).
8. What are the Components of a class?
Public section.
Protected section.
Private section.
Endclass.
Method m1.
--------
Endmethod.
Endclass.
Static constructor will be called only once, i.e. at the time of loading class in
to memory. Instance constructors are instance specific, these constructors
will be called as and when the new object is created for that class.
Static attributes & methods are class specific, memory will be allocated
only once for Static attributes & methods irrespective of no. of objects
created.
Abstract class contains both abstract methods and normal methods, abstract
methods cannot implement in side abstract class, and instead these methods
will be implemented by child classes of that abstract class.
Final classes can’t be inherited that means it can not have child classes and
final method of a class cannot be redefined.
Friend class is a class it can access private components of it’s friends class.
In general we can not create object for a private class, but we can access
static method of a private class so call that method using its class name and
import that object.
For example take one static method with an exporting parameter inside
private class and write object creation code in that static method and export
that object.
Single-ton classes can be instantiated only once, i.e. only one object is
created for Single-ton classes.
A special class, the attributes of which are linked to database tables via
object-relational mapping. Since Release 6.10 they can be created using the
Mapping Assistant of the Class Builder.
The objects of persistent classes are managed by Object Services. An object
in a persistent class, the attributes of which are saved as database content
after the run time of an ABAP program.
Dear Friends if you have any questions on Object Orientation please write in
comment box below it'll help fellow ABAPers.
Imports
Examples
Antivirus Program
Sap Abap
Importing
The Program
"You found the information helpful and want to say thanks? Your donation is enough to
inspire us to do more. Thanks a bunch!"
Posted in: ABAP Interview Questions, Object Oriented ABAP, Object Oriented ABAP
Interview Questions, OOABAP, SAP ABAP Interview Questions, SAP ABAP Introduction,
SAP Basics
You might also like:
Object Oriented ABAP Interview Questions 3
Object Oriented ABAP Interview Questions 2
Object Oriented ABAP Interview Questions 1
OOABAP Tutorials with Examples-2
SAP-ABAP-General-Object-Oriented-Interview-Questions-Answers
Linkwithin
Older Post Home
2 comments:
Sugavanes said...
Post a Comment
Categories
ABAP Interview Questions (109) ABAP Open SQL Statements (1) ABAP Syntax Rules (6)
ABAP WORKBENCH (2) ALE IDOC (6) ALE IDOC Interview Questions (6) ALV Interview
Questions (5) BADI (2) BAPI (1) BAPI Interview Questions (1) BDC (6) BDC Interview
Questions (6) Classical Reports Interview Question (3) Conditional Statements (1) Cross
Applications (3) Data Dictionary (22) Data Type Questins (1) Data types (1) Dialog
programming (5) Dialog Programming Interview Questions (4) DOMAIN Interview Questions
(1) Function Module (2) IDoc Tutorials (6) Interactive Report Interview Questions (4) Internal
Tables (1) Lock Object Interview Questions (1) Logical Database (1) Modularization Interview
Questions (4) Module Pool Programming (5) Object Oriented ABAP (19) Object Oriented
ABAP Interview Questions (15) OOABAP (9) Reports (14) Reports Interview Questions (9)
RFC (1) RFC Interview Questions (1) SAP ABAP Interview Questions (38) SAP ABAP
Introduction (46) SAP ABAP Message Types (2) SAP BADI Interview Questions (2) SAP
Basics (69) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP
ENHANCEMENTS (3) SAP EXITS (2) SAP EXITS ( SAP ENHANCEMENTS ) Interview
Questions (1) SAP Free Books (1) SAP HR (2) SAP Lock Object (1) SAP Open SQL Statements
(1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP Smartforms
Interview Questions (2) SAP Tables (5) SAP Tcodes (10) SAP Views (1) SAP Webdynpro
ABAP (12) SAP Work Processors (2) SAP Workflow (3) Scripts (3) Scripts Interview Questions
(2) Search Help Interview Questions (1) Smartforms (1) Table Maintenance Generator (1) Tables
in SAP (2) Tables Interview Questions (3) Type Group Interview Questions (1) Variable
Declaration (1) Views Interview Questions (1) Webdynpro (12)
Protected Blog
Google Translator
Powered by Translate
Follow by Email
Search
Follow Us on Twitter!
Popular Posts
SAP Object Oriented ABAP Interview Questions Answers
SAP Web Dynpro ABAP Interview Questions Answers
50 SAP ABAP Interview Questions for Freshers & Experienced
Module Pool Programming Interview Questions in SAP ABAP
ALV Reports Interview Questions in SAP ABAP
SAP Project Management Realtime Interview Questions Answers
Free SAP PDF Books, Documents and Material free Download
SAP BADI Interview Questions in ABAP
Module Pool Programming Interview Questions and Answers
ABAP Web Dynpro Interview Questions Answers Realtime
Blog Archive
▼ 2014 (38)
o ▼ August (4)
SAP Object Oriented ABAP Interview Questions Answe...
Module Pool Programming Interview Questions in SAP...
Module Pool Programming Interview Questions and An...
SAP Dialog / Module Pool Programming Interview Que...
o ► July (5)
o ► May (5)
o ► April (1)
o ► March (2)
o ► February (6)
o ► January (15)
► 2013 (59)
► 2012 (65)
Total Pageviews
676645