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

Constructor vs. factory

jrgkraus
Active Contributor
0 Likes
1,158

Hi to all,

in the standard class cl_salv_table, I notice that objects are not to be instantiated by a create object statemant - but by a factory method. I would now like to understand the concept. Why should the developer of a class create a factory method instead of writing the code needed for instantiating in a constructor?

Thanks for all responses

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
900

Hi,

Please have a look at the link

Regards,

Naresh.

2 REPLIES 2
Read only

Former Member
0 Likes
901

Hi,

Please have a look at the link

Regards,

Naresh.

Read only

Former Member
0 Likes
900

Hi,

Take A look At the Link.

This might help.

Regards

Sumit Agarwal