Application Development 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: 

Constructor vs. factory

jrgkraus
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Please have a look at the link

Regards,

Naresh.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please have a look at the link

Regards,

Naresh.

Former Member
0 Kudos

Hi,

Take A look At the Link.

This might help.

Regards

Sumit Agarwal