We used interface when we don't know the type of particular objects . but
abstract class defined the same objects type.

interface means unknown type objects and we can casting unknown type object
into interface type that is implemented by the class.

On Mon, Mar 8, 2010 at 11:31 AM, Raghupathi Kamuni <[email protected]>wrote:

> Interfaces are used to define the peripheral abilities of a class.
> An abstract class defines the core identity of a class and there it is used
> for objects of the same type.
>
> An interface cannot have access modifiers for the functions and properties
> everything is assumed as public.
> An abstract class can contain access modifiers for the functions and
> properties.
>
> An interface cannot provide any code, just the signature.
> An abstract class can provide complete, default code and/or just the
> details that have to be overridden.
>
>
> On Mon, Mar 8, 2010 at 12:34 AM, crazy <[email protected]> wrote:
>
>>  Hi,
>> I gone through a lots of  articles regarding Abstarct class and
>> Interfaces..
>> What is the extra thing in interface but not in Abstract?  Not in the C#
>> conepts whole in OOPS.
>> why we cant use  abstarct classes instead of Interfaces  ?
>> in C# , if we need to implement  multiple inheritance,we can use it
>> anything extra??
>>
>> thanks
>> --
>> "People who never make mistakes, never do anything."
>>
>> dEv
>>
>
>


-- 
     Warm Regards,
Paurush  Sharma
Contact no. 09868994809

Reply via email to