Professional Documents
Culture Documents
AWP viva
AWP viva
AWP viva
Inheritance
Inheritance is the concept we use to build new classes using the existing class definitions. It is a
process in which one object acquires all the properties and behaviors of its parent object
automatically.In C#, the class which inherits the members of another class is called derived class and
the class whose members are inherited is called base class.
Polymorphism
Polymorphism is a feature of OOPs that allows the object to behave differently in different conditions.
Polymorphism is also known as one name many form. It provides the ability to a class to have
multiple implementations with the same name.
What is user control? How to create and use user control in ASP.NET Page.
The UserControl gives you the ability to create controls that can be used in multiple places
within an application or organization. ... This gives you the ability to reference the user
control in many applications and save time laying out and coding the contained elements of the
user control.
Why exception handling is required? Write syntax for user define exception?
Exception handling: The mechanism of Exception Handling is throwing an exception and catching it C#
uses try-catch block. Code which may give rise to exceptions is enclosed in a try block, and Catch block
catches that exception and handles it appropriately. The try block is followed by one or more catch
blocks.
Basic syntax:
try { //programming logic(code which may give rise to exceptions)
}
catch (Exception e)
{ //message on exception }
finally
{ // always executes }
The XDocument class contains the information necessary for a valid XML document, which
includes an XML declaration, processing instructions, and comments. You only have to create
XDocument objects if you require the specific functionality provided by the XDocument class
The XElement class is one of the fundamental classes in LINQ to XML. It represents an XML element.
The following list shows what you can use this class for: Create elements. Change the content of the
element.
Advantages
Reduces the server traffic and increases the speed
Form validation
Asynchronous calls can be made; this reduces the time for data arrival.
Disadvantages
Open-source
For security reasons, you can only access information from the web host that serves pages. Fetching