Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

inheritance questions

Hi,

i inheritance to subclass from super ( global- se24)

and i have 2 constructors

1. CONSTRUCTOR - from the super

2.CLASS_CONSTRUCTOR - of the sub

i want to add parameters to Class constructor and i cant i get this Error (Class constructors and destructors do not have parameters and exceptions) way? the CONSTRUCTOR of the super have parameters .

Regards

Former Member
replied

Go to SE24.

Open your SubClass

And press the "Create Constructor" button

It will ask if you want to include the parameters from the Super class.

If you need than press Yes, else press NO.

So, when you create a reference of this class.

It will first call the Super's Constructor

Than Subclass's construtor.

Regards,

Naimesh Patel

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question