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

Reg Abstract Class

Former Member
0 Likes
558

Hi,

I know we cannot instantiate an abstract clas..

data : var type ref to cl_abap_typedescr.

var = cl_abap_typedescr=>describe_by_name( p_table ).

here in the above statemnt what is the var called.? is it an object of the abstract class cl_abap_typedescr

regards

Hi,

I know we cannot instantiate an abstract clas..

data : var type ref to cl_abap_typedescr.

var = cl_abap_typedescr=>describe_by_name( p_table ).

here in the above statemnt what is the var called.? is it an object of the abstract class cl_abap_typedescr

regards

3 REPLIES 3
Read only

Former Member
0 Likes
533

No it is not an object of an abstract class . var is a reference to class cl_abap_typedescr.

Read only

0 Likes
533

thnks

whts da difference between a object and a reference.

Edited by: SAP LEARNER on Nov 18, 2008 10:24 AM

Read only

0 Likes
533

Object is an instance of a class. Reference variable ( reference ) that points to an object .