2010 Apr 13 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.
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.
2010 Apr 13 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 constructorCheerz
Check the below thread for more info
http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Ram
2010 Apr 14 5:46 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |