04-13-2010 7:39 AM
Hi experts,
I was trying to figure out whether is it possible to create more than one constructor in same class (like overloading in c++).
thank you.
04-13-2010 7:45 AM
Hi,
I think there is a better way to express it anyways thanks to you too-:)
Technically speeking you can, but only the Inheritance Tree.
in one class Unique attributes (Variable) be declared in that sence,
in a class we can have one Instance Constructor and one Static Constructor only
class lcl_class.
public section.
methods : constructor.
class-methods : class_constructor "Now no more duplicate declarations allowed
protected section
private section
endclass
"But if you inherit this class, the the Child class can have its own constructor
"and when you call the child class constructor it must call its super class constructor
Cheerz
Check the below thread for more info
http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Ram
04-14-2010 5:46 AM