Abstract class and an Interface
Write difference between an Abstract class and an Interface.
Expert
Abstract Class :
a) A class is able to extend only one abstract class. b) Abstract classes must have subclasses. c) Members of abstract class may be private as well as protected. d) Methods in the abstract class may be abstract as well as concrete. e) Any class is able to extend an abstract class. f) Class extending the abstract class may or may not execute any of its method. g) There can be a constructor for the abstract class. h) An abstract class can implement the methods.
Interface:
a) Several interfaces can be implemented by a class, b) Interfaces should have implementations by classes. c) An interface can have only public members. d) All methods in an interface must be abstract. e) Only an interface is able to extend another interface. f) All methods of interface need to be implemented by a class implementing that interface. g) Interface does not have constructor. h) Interfaces cannot contain body of any of its method.
Briefly describe side-by-side execution and also explain whether two applications, one using the shared assembly and other private assembly be declared as side-by-side executables?
Briefly describe contra-variance and covariance in .NET Framework 4.0 and give an example for both?
List the types of generations there are in a garbage collector?
Explain what is a Static Constructor?
Illustrate the meaning of data encapsulation?
What are the components of web form in ASP.NET?
Web form belongs to which class in a .NET Framework class hierarchy?
Explain what is meant by CTS, and how it is related to the CLS?
Is it possible to validate a DropDownList by RequiredFieldValidator?
Explain the purpose of the JIT compiler in .NET Framework?
18,76,764
1937688 Asked
3,689
Active Tutors
1460432
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!