‎2008 Mar 19 7:32 AM
Hi,
Can any one let me know what is the need to create an object for an interface??
This i have seen in so many programs??
Thanks
--Pradeep
‎2008 Mar 19 7:47 AM
First of all you wont declare an object w.r.t an interface.
You have to first implement the interface using a class and can only create class variables (which inturn becomes objects when CREATE OBJECT statement is called) w,r.t that class.
But you can always declare variables w.r.t that interface. that variable becomes an objects only when CREATE OBJECT is called or a method is called which inturn returns the object variable.
Hope this helps.
Thanks,
Balaji
‎2008 Mar 19 7:47 AM
First of all you wont declare an object w.r.t an interface.
You have to first implement the interface using a class and can only create class variables (which inturn becomes objects when CREATE OBJECT statement is called) w,r.t that class.
But you can always declare variables w.r.t that interface. that variable becomes an objects only when CREATE OBJECT is called or a method is called which inturn returns the object variable.
Hope this helps.
Thanks,
Balaji