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 the properties in C# and state the advantages which are attained by using them in programs?
Explain what would you do to get rid of Microsoft visual basic name space?
Differentiate between Web server controls and HTML?
Two catch blocks can be executed or not?
How we can prevent users of the application from editing a text in ComboBox controls in the .NET 4.0?
Is it possible for users to define their own exceptions in code?
State the reason why workflows are based on the Extensible Models.
What are the components of web form in ASP.NET?
Describe briefly about ASP or Active Server Pages?
Write the name of the parent class of a Web server control?
18,76,764
1954838 Asked
3,689
Active Tutors
1425417
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!