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

Opps Concepts -Class

Former Member
0 Likes
1,409

HI

ALL,

I'm bit confused with Object and class,,

for example : Table is object ,,in DDIC.

What is the class for Object Table ?

is it DATAELEMENT or DOMAIN..or what it would be..?

Thanks N Regards

Priya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,341

hi Priya,

DDIC objects are different from ABAP objects.

In ABAP Report , include all are objects.

Object is instance of class.

vehcile is class.car, bus are object .

Amit

10 REPLIES 10
Read only

Former Member
0 Likes
1,341

object is an instance of class.

Ex: if vehicle is a class then car,truck,bus all are objects.

objects will have some or all the properties of a class

Read only

0 Likes
1,341

hi,

Thanks for the quick reply ..

Could u explain me with respect to DDIC objects..(ex Table)

Thanks N Regards

Priya.

Read only

0 Likes
1,341

that was already explained see matthew's post.

i hope you understand

Read only

matt
Active Contributor
0 Likes
1,341

>

> HI

> ALL,

>

> I'm bit confused with Object and class,,

>

> for example : Table is object ,,in DDIC.

>

> What is the class for Object Table ?

>

> is it DATAELEMENT or DOMAIN..or what it would be..?

>

> Thanks N Regards

>

> Priya.

For the purposes of ABAP Objects, a table is NOT an object in DDIC. There is no class for it. DDIC object is not the same as an ABAP Object or class.

matt

Read only

Former Member
0 Likes
1,342

hi Priya,

DDIC objects are different from ABAP objects.

In ABAP Report , include all are objects.

Object is instance of class.

vehcile is class.car, bus are object .

Amit

Read only

Former Member
0 Likes
1,341

Hi priya,

DDIC Objects are DB Table, View, Data Type, Type Group, Domain, Search Help, Lock Objects.

ABAP Objects are completely different from DDIC Objects. ABAP Objects tells how to do the programs using OOPS Concepts. (i.e.,) Programming using Real world Objects.

Class gives the general Description of objects("Blue Print"). It establishes the status type and the behaviour.

Objects is nothing but reflection of real world. Specific instance of a Class.

You Can able to call the behaviour of a class through Objects.

Reply Your Feedback. I will come back soon with more about ABAP Objects.

Read only

Former Member
0 Likes
1,341

Hii!

Dont relate classes with DDIC objects.

Class in any Object Oriented language is just a description or definition.

To access a class, you need to make its runtime object first.

eg,

Suppose you have a class called lcl_vehicle.

You cannot use this class without creating its runtime object.

DATA: r_vehicle TYPE REF TO lcl_vehicle.

In above step you have created one reference variable which will address the components of class lcl_vehicle.

Now,

When you write,

CREATE OBJECT r_vehicle.

In this step you are creating a runtime object of class or we can say another instance of class. You can create any number of runtime objects of class.

Regards,

Abhijeet Kulshreshtha

Read only

Former Member
0 Likes
1,341

Hi priya,

don't confuse only going by terms.

In sort, there are 2 cases where we use the word 'object'.

If it is in context to DDIC object , then it refers to Database Table,Views, Data type, type group, Domain ,search help and Lock object.

If it is in cotex to OOABAP, then it means the instant of a class with memory allocated to it.

So if find any question, like 'What is object?' , check its section,i.e. where is it given or ask the person about which object is he asking for.

it is a very common confussion in ABAP.

Anirban Bhattacharjee

Edited by: Craig Cmehil on Jun 30, 2008 11:24 AM

Read only

mohamed_buhari3
Discoverer
0 Likes
1,341

In DDIC evrey thing is considered as an object.Tables , dataelement, domain and any dicitinary object is an object.

When we consider in OO class in ABAP inside the class there are so many objects for example Vehicle is a class and Tyre etc will be the object of the Class vehicle.

Read only

bpawanchand
Active Contributor
0 Likes
1,341

This message was moderated.