This is simple
if you have a class SampleClass implementing the interface SampleInterface you must instantiate the object of the interface with the constructor of the class eg: SampleInterface si = new SampleClass(); si.callMethod(); this should work regards Nachi ----- Original Message ----- From: "Ramesh Nuthalapati" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 16, 2001 15:36 Subject: (RUP) Interface - subsystem > > > Hi all > > I have an interface. i have implemented this interface in a sub system. so my class should access the interface methods which are implemented in the subsystem. when i am trying to call methods > > InterfaceSample samp=null; > samp.getData(); > > when i used this in my class it says "NULL" and is throwing exception. > > Please help me in this issue. how do i call methods which are implemeted in my subsystem through interface. > > everything i have kept in a package. > > > Thanks in advance > Ramesh Nuthalapati. > > > *************************************************************************** > * RUP Forum is a public venue for discussions about the > * Rational Unified Process (RUP). > * > * For technical support of RUP, RPW, Rose or any other Rational > * product, please visit: http://www.rational.com/support > * > * For other discussion groups, such as Rose and UML, please > * sign up at: http://www.rational.com/support/usergroups/index.jsp > * > * To reply to a posting, please "Reply to all" or send > * To: [EMAIL PROTECTED] > * > * Admin.Subscription Requests: [EMAIL PROTECTED] > * > * Other Requests: [EMAIL PROTECTED] > * > * To unsubscribe from the list, please send an email: > * > * To: [EMAIL PROTECTED] > * Subject:<BLANK> > * Body: unsubscribe rup_forum > * > **************************************************************************** ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Admin.Subscription Requests: [EMAIL PROTECTED] * Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * * To: [EMAIL PROTECTED] * Subject:<BLANK> * Body: unsubscribe rose_forum * *************************************************************************
