<p>How to call some methods from a private access supper class </p>
1 posts in topic
Flat View  Flat View

Posted By:   PhiDi_TranThi
Posted On:   Thursday, August 1, 2002 12:43 PM

I wrote a java class, retCallInfo, which extends a super class, VoiceElementData. I tried to inherit some data types and methods from that supper class. But it generates the error messages as below:

"VoiceElementData() has private access in com.audium.server.VoiceElementData

public class retCallInfo extends VoiceElementData{

1 error"

How can I access the data and method in this private access supper class

Thanks in advance for any helps

PhiDi TranThi

Re: <p>How to call some methods from a private access supper class </p>

Posted By:   Lance_Walton  
Posted On:   Sunday, August 4, 2002 03:51 PM


It looks like your VoiceElementData class has a private no-arg constructor and your retCallInfo class is trying to call super() in one of its constructors. You need to change the visibility of the VoiceElementData no-arg constructor to protected, package (if retCallInfo is in the same package as VoiceElementData) or public visibility and then it will work.

By the way, I suggest capitalising the first letter of the retCallInfo class in order to follow the general conventions for class naming :-)




Lance Walton - lance@teaminabox.co.uk

Team in a Box - Software without Tragedy


About | Sitemap | Contact