When should we use abtract class and Interface Class?Give
an Example

Answer Posted / eswar

Features are same but implementation are different then we
go for Interface

Features are same and some of the implementations are same
then we go for Abstract.

Is This Answer Correct ?    14 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

3402


What is the use of asp.net web api?

578


What is the function of the ViewState property?

634


What’s the catch?

620


If you are using components in your application, how can you handle exceptions raised in a component?

2075






What is the difference between a page theme and a global theme?

534


What is redirecting behavior?

519


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1440


How you can return View from ASP.NET Web API method?

541


What is a windows service?

556


What is the equivalent of date() and time() in asp.net?

513


What is http pipeline in asp.net?

509


Can you nest updatepanel within each other?

548


What is the difference between localization and globalization?

558


Can the unique key be null?

566