test .net

2
Question : What is an application server? Answer : As defined in Wikipedia, an application server is a software engine that delivers applications to client computers or devices. The application server runs your server code. Some well known application servers are IIS (Microsoft), WebLogic Server (BEA), JBoss (Red Hat), WebSphere (IBM).Compare C# and VB.NET A detailed comparison can be found over here. Question : What is a base class and derived class? Answer : A class is a template for creating an object. The class from which other classes derive fundamental functionality is called a base class. For e.g. If Class Y derives from Class X, then Class X is a base class. Question : Define Overriding? Answer : Overriding is a concept where a method in a derived class uses the same name, return type, and arguments as a method in its base class. In other words, if the derived class contains its own implementation of the method rather than using the method in the base class, the process is called overriding. Question : Can you use multiple inheritance in .NET?

Upload: indra-permana

Post on 12-Dec-2015

213 views

Category:

Documents


0 download

DESCRIPTION

test .Net

TRANSCRIPT

Page 1: test .Net

Question : What is an application server?

Answer : As defined in Wikipedia, an application server is a software engine that delivers

applications to client computers or devices. The application server runs your server code. Some

well known application servers are IIS (Microsoft), WebLogic Server (BEA), JBoss (Red Hat),

WebSphere (IBM).Compare C# and VB.NET A detailed comparison can be found over here.

Question : What is a base class and derived class?

Answer : A class is a template for creating an object. The class from which other classes derive

fundamental functionality is called a base class. For e.g. If Class Y derives from Class X, then

Class X is a base class.

Question : Define Overriding?

Answer : Overriding is a concept where a method in a derived class uses the same name, return

type, and arguments as a method in its base class. In other words, if the derived class contains its

own implementation of the method rather than using the method in the base class, the process is

called overriding.

Question : Can you use multiple inheritance in .NET?

Answer : .NET supports only single inheritance. However the purpose is accomplished using

multiple interfaces.

Question : What is an Interface?

Answer : this interface. Interfaces are primarily used to set a common standard or contract.

Page 2: test .Net

Question : When should you use abstract class vs interface or What is the difference between an

abstract class and interface?

Answer : I would suggest you to read this. There is a good comparison given over here.