Constructors: What does 'Overloading' mean ???

Question: Could someone please explain to me in (ABAP) terms overloading.

Take this scenario

Superclass: LCL_SUPER with a CONSTRUCTOR
1 importing variable 'A'
Subclass: LCL_SUB with a CONSTRUCTOR
1 importing variable 'B'

Now I know that in the constructor of the subclass I need to call the constructor of the superclass (not the class constructor as this is called automatically).

When I CREATE OBJECT in the calling program do I then have to pass A and B ?

Is this what overloading means.

I would appreciate some help on this, I have looked in the SAP documentation and to be honest something there has got lost in translation!

Mnay thanks

Answer:
Overloading is bascially writing two versions of the same function. The only difference is the type or number of parameters they take.

Depending on the parameters you use to call the function with, SAP decides which function to call.
Copyright ?2007 - 2008 www.jt77.com