Interface
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Girish_Kumar
Posted On:   Wednesday, May 29, 2002 01:20 AM


Code A:

class A implements interA
{
met()
{
}
met(int i)
{
}
}

Code B:

class A
{
met()
{
}
met(int i)
{
}
}

What is the difference between the above two code
what changes it will make if i use interface and implement the method

and I directly write the method in the class

Re: Interface

Posted By:   sanjay_kumar  
Posted On:   Thursday, May 30, 2002 08:49 AM

If you define an interface, you can have different implemenation of that in different Classes that implement that interface.
About | Sitemap | Contact