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

Multiple object constructors

Former Member
0 Likes
1,693

Hi,

Are multiple constructors with different parameters allowed in ABAP?

Thanks.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
1,052

No.

But you can have optional parameters. And you can have IF i_param IS SUPPLIED...

Regards

matt

( btw, there is a seperate forum for ABAP Objects related questions - you're generally more likely to get good responses there, as their is far less traffic ).

2 REPLIES 2
Read only

matt
Active Contributor
0 Likes
1,053

No.

But you can have optional parameters. And you can have IF i_param IS SUPPLIED...

Regards

matt

( btw, there is a seperate forum for ABAP Objects related questions - you're generally more likely to get good responses there, as their is far less traffic ).

Read only

mariomueller68
Explorer
0 Likes
708

use factory pattern!