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...


what are abstract classes? what is overriding?

Answers were Sorted based on User's Feedback



what are abstract classes? what is overriding?..

Answer / venkateh chowdary gutlapalli

A class that contains on one or more abstract functions is
known as abstract class.
we can not instantiate abstract class directly.first we have
to create a derived class and then we can instantiate.

Is This Answer Correct ?    17 Yes 2 No

what are abstract classes? what is overriding?..

Answer / kalpana

Abstract classes cannot be used to instantiate objects;
because abstract classes are incomplete, it may contain only
definition of the properties or methods and derived classes
that inherit this implements it's properties or methods.

Is This Answer Correct ?    7 Yes 0 No

what are abstract classes? what is overriding?..

Answer / maloy.adhikari

abstract Class: I find a Proper ans there.

So Posting For Overriding.
Method Overriding:

Method overriding occurs when child class declares a method
that has the same type arguments as a method declared by one
of its superclass.
Method overriding forms Run-time polymorphism.

Eg1:
Class Maloy
{
virtual void hello()
{ Console.WriteLine(“Hello from Maloy”); }
}
Class Adhikari: Maloy
{
override void hello()
{ Console.WriteLine(“Hello from Adhikari”); }
}
static void main()
{
parent objmaloy = new Adhikari();
objmaloy .hello();
}
//Output
Hello from Adhikari.
..................
Hope You Understand This.

Is This Answer Correct ?    4 Yes 0 No

what are abstract classes? what is overriding?..

Answer / josephine

Abstract classes contains both abstract methods and non
abstract methods.Abstract methods must be implemented.
Overriding:
When a class is subclassed,functionalities are performed in
subclass

Is This Answer Correct ?    4 Yes 1 No

what are abstract classes? what is overriding?..

Answer / mohd.nafish

if a calss contain more than one pure virtual function
then this class called abstract class....
if a class have more then one funtion which name is same
then this type funtion call by make single object so this is
overriding

Is This Answer Correct ?    3 Yes 0 No

what are abstract classes? what is overriding?..

Answer / bunny p

A class that contains on one or more abstract functions is
known as abstract class.

Is This Answer Correct ?    5 Yes 4 No

what are abstract classes? what is overriding?..

Answer / lakki

Abstract class is a class contains one or more abstract
methods or propeties, such methods do not provide
implementation. if u wantto implement that methods then first
u hav to derive that class.
abstract classes cant be intiated, but abstract derived
classes can be inherited.

Overriding is nothing but a child class derived the method in
its parent class, method parametrs are same but logic is
different..

Is This Answer Correct ?    1 Yes 0 No

what are abstract classes? what is overriding?..

Answer / subhransu

abstract class perform as base type. it works at the root
label of class diagram.all abstract method should be define
inside the abstract class.Abstract class can not be
instanciate if we want to access the data member of the
abstract class then it should be done through it's derived
class.This concept leads to data hidng and datahing leads
to data security.

Is This Answer Correct ?    1 Yes 0 No

what are abstract classes? what is overriding?..

Answer / kiran

Excellent Answer.

Is This Answer Correct ?    2 Yes 15 No

what are abstract classes? what is overriding?..

Answer / ultimate rajnikanth

Ultimate Answer...

Is This Answer Correct ?    0 Yes 14 No

Post New Answer

More Dot Net Framework Interview Questions

How do assemblies find each other?

2 Answers  


explain how you can load related entities in ef (entity framework)?

0 Answers   Microsoft,


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

0 Answers  


Explain the 'page lifecycle' of an ASP.NET MVC?

0 Answers  


What are authentication filters in web api?

0 Answers  


Where do the reference-type variables go in the RAM ?

1 Answers  


What is different between User Control and Web Control and Custom Control?

2 Answers  


What is the difference between viewbag and viewdata in mvc?

0 Answers  


Can we add constraints to the route? If yes, explain how we can do it?

0 Answers  


I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me.

2 Answers   Accenture,


What are the 2 ways of adding constraints to a route?

0 Answers  


What is .NET Framework?

4 Answers  


Categories