What is interface and abstract class in .Net?
Submitted by: Administratorwhen a class is not provided with full functionalitythen it is declared as abstract.it doesn't support instance creation as well as it cannot be overridable to child class.interface is a colection of methods only without functionality.interface is 90% same as abstract class.
An interface class is a class contains all functions that are are abstract.
An abstract class is a class that may or may not contain an abstract function.
Abstract function : functions with only declaration , no definition is present. the user implimenting, inheriting the function has to override the function , mandatorily.
Instances of abstract class and interface class are made at runtime.so objects cannot be created ,due to lack of informations of the class.
Submitted by: Administrator
An interface class is a class contains all functions that are are abstract.
An abstract class is a class that may or may not contain an abstract function.
Abstract function : functions with only declaration , no definition is present. the user implimenting, inheriting the function has to override the function , mandatorily.
Instances of abstract class and interface class are made at runtime.so objects cannot be created ,due to lack of informations of the class.
Submitted by: Administrator
Read Online Microsoft.NET 2.0 Job Interview Questions And Answers
Top Microsoft.NET 2.0 Questions
☺ | Explain What is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control? |
☺ | What is 2 tier and 3 tier architecture? |
☺ | Explain the procedure to add assemly to GAC to make it shared one? |
☺ | Explain What rare the Types of JIT and what is econo-JIT? |
☺ | In .NET Compact Framework, can we free memory explicitly without waiting for garbage collector to free the memory? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |