Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FAQ's In abap Objects

Former Member
0 Likes
690

Hi Guys,

I am having an interview tmmorrow in Abap Objects.

Could any one help me in sending me the Faq's ASAp.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
661

Hi Sagar,

One inevitable question is -

<b>What are similarities/dissimilarities with other object oriented languages?</b>

Check the following link for that.

https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/1693f0b7-0701-0010-8187-931b02a5fbfb [original link is broken]

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25a3df90-0201-0010-10b6-9712397c...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d86aaf90-0201-0010-9eb2-f3da5f44...

Regarding dissimilarities you can say -

1. Destructors not available in ABAP unlike other OO languages.

2. Normal method overloading (changing both signature + implementation) not

possible in ABAP objects, only constructor can be overloaded in ABAP.

Check out following links also -

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd65...

Award points if found useful.

Regards

Indrajit.

Hi Guys,

I am having an interview tmmorrow in Abap Objects.

Could any one help me in sending me the Faq's ASAp.

Thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
661

Hi,

If you do a media search on ABAP Objects you will find:

1)Eight Reasons Why Every ABAP Developer Should Give ABAP Objects a Second Look by Horst Keller

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/37c5db90-0201-001...

2) Questions: Why use ABAP Objects

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3e59b790-0201-001...

3) Why use ABAP Objects Exercise

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3412d190-0201-001...

4) ABAP Objects for Java Developers:

https://media.sdn.sap.com/public/eclasses/teched04/ABAP151_files/Default.htm#nopreload=1

There is also an excellent class offered by SAP Education called BC401 that describes Objects and BADIs in exruciating detai ;-).

http://www8.sap.com/useducation/curriculum/course.asp?rid=276&cid=60167031

Check the links -

Regards,

Priyanka.

Read only

Former Member
0 Likes
662

Hi Sagar,

One inevitable question is -

<b>What are similarities/dissimilarities with other object oriented languages?</b>

Check the following link for that.

https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/1693f0b7-0701-0010-8187-931b02a5fbfb [original link is broken]

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25a3df90-0201-0010-10b6-9712397c...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d86aaf90-0201-0010-9eb2-f3da5f44...

Regarding dissimilarities you can say -

1. Destructors not available in ABAP unlike other OO languages.

2. Normal method overloading (changing both signature + implementation) not

possible in ABAP objects, only constructor can be overloaded in ABAP.

Check out following links also -

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd65...

Award points if found useful.

Regards

Indrajit.

Read only

Former Member
0 Likes
661

Hi Sagar,

Some of the frequently asked questions in ABAP OO include:

1) Difference between interface and abstract class.

Ans: In an abstract class, atleast one method is not defined where as in an interface no method is defined ie all methods have to be redefined in the class that implements the interface.

2) What is narrowing cast?

Ans: If A is an object of a super class and B is an object of the child class, then,

the statement A = B is called narrowing cast. By doing this, the super class object A can access the public n protected members that the child class inherited from it and also the redefined methods of the child class.

3) By default, what is the visibility in a class?

Ans: Unless specified, the visibility in a class is private.

4) What is CLASS_CONSTRUCTOR? When is it called?

Ans: CLASS_CONSTRUCTOR is the static constructor of a class that is used to initialize the static attributes ( CLASS-DATA) of a class. It is called before the class is instantiated.

All the best!

Reward points if helpful.

Regards,

Renuka.