Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

inerface object

pradeep_nellore
Participant
0 Likes
346

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
331

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

1 REPLY 1
Read only

Former Member
0 Likes
332

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