‎2008 Jun 25 11:06 AM
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.
‎2008 Jun 25 11:59 AM
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
‎2008 Jun 25 11:08 AM
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
‎2008 Jun 25 11:18 AM
hi,
Thanks for the quick reply ..
Could u explain me with respect to DDIC objects..(ex Table)
Thanks N Regards
Priya.
‎2008 Jun 25 11:19 AM
that was already explained see matthew's post.
i hope you understand
‎2008 Jun 25 11:16 AM
>
> 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
‎2008 Jun 25 11:59 AM
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
‎2008 Jun 26 5:03 AM
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.
‎2008 Jun 26 6:45 AM
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
‎2008 Jun 26 9:15 AM
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
‎2008 Jun 26 10:16 AM
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.
‎2008 Jun 30 8:40 AM