Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can we create instance for Abstract class?

Answers were Sorted based on User's Feedback



Can we create instance for Abstract class?..

Answer / pankaj nayal

@Ahmadjad

we can implement multiple inheritence through interface....
if you want to say some other thing just let us know...!!

public class a extends b implements c
{
}

Is This Answer Correct ?    0 Yes 0 No

Can we create instance for Abstract class?..

Answer / rahul gupta

no,
we can not create instance of abstract class because we can
inherit abstract base class by its derived class .

Is This Answer Correct ?    0 Yes 0 No

Can we create instance for Abstract class?..

Answer / sonia bandooni

CREATE A ABSTRACT CLASS USING ABSTRACT KEY
WE CAN CREATE INSTANCE OF ABSTRACT CLASS IN C# .

Is This Answer Correct ?    0 Yes 0 No

Can we create instance for Abstract class?..

Answer / anand kumar dwivedi (bholu)

we can't create instance for an abstract class directly, but
with the help of DYNAMIC BINDING(in this case we can put the
ref. of parent class) we can create the object of abstract
class.
an example;

abstract class Temp
{
abstract void show();
void display()
{
System.out.println("possible to create");
}
}
class TestTemp extends Temp
{
void show()
{
System.out.println("we are providing body for abstract method");
}
public static void main(String[] args)
{
Temp temp = new TestTemp();
temp.show();
temp.display();
}
}

Is This Answer Correct ?    0 Yes 0 No

Can we create instance for Abstract class?..

Answer / praveenbabu

I can create instance for abstract class.. :) if u want
answer mail me to praveenbabu.it2009@gmail.com :)

Is This Answer Correct ?    0 Yes 1 No

Can we create instance for Abstract class?..

Answer / mohammed rafi

Its not possible to create a object for Abstract Class,
in that class atleast one method should be Abstract which
means dont have defination,if there is no defination its un-
complete class, when class is having all exiting methods
definations then only we can create the object.

Thumb role is abstract class incomplete class, we can
create object where class is completed.

Is This Answer Correct ?    2 Yes 4 No

Can we create instance for Abstract class?..

Answer / deepak bankar

we can create instance for abstract class .
But we can not use this object

Is This Answer Correct ?    1 Yes 3 No

Can we create instance for Abstract class?..

Answer / narasimha

Hello friends,

I have faced two questions plz let me know the asnswer for
this q---

1. why not create for the instance for abstract classan
what is the reasons for that.
2. wht not support the java,.net multiple inhiritece.what
is the reasons for that.

Is This Answer Correct ?    4 Yes 14 No

Post New Answer

More C Sharp Interview Questions

Can arraylist hold primitive types?

0 Answers  


Can I use parseint?

0 Answers  


What are the types of access modifiers?

0 Answers  


Whats the use of string builder?

1 Answers   ADITI,


What are the Types of JIT and what is econo-JIT

0 Answers   TCS,


Why do we need a finally block in try catch block while handling exceptions

4 Answers   IBM,


For read-only operation which property you have to designated?

0 Answers   Siebel,


What is dynamic dispatch?

0 Answers  


Can I get the name of a type at runtime?

0 Answers  


What is sql transaction in c#?

0 Answers  


Code to run exe like mspaint,autocad etc in asp.net.

2 Answers  


what are implementation inheritance and interface inheritance?

0 Answers  


Categories