04-12-2009 3:22 PM
I was trying to override attribute(data memeber) defined in super class into subclass ,
but I didnt find any solution to that.
Please tell me ho to do that?
Ex
Class ABC definition
Public section
data : x type i.
.
.
end class
Calss XYZ definition inheriting from ABC.
Publec section.
data : x type i. <<----
here is the problem
..
...
endclass.
04-12-2009 3:39 PM
when you define a subclass all the properties of superclass are inherited into class.
You dont need to define it again.
data : x type i " delete this line.
Object of your subclass will be able to recognize x.
Regards,
Lalit Mohan Gupta.
11-16-2009 10:03 AM