You are on page 1of 3

1.What is .Net? Microsoft defines .Net is a Frame work with collection of multiple liber aries and provide runtimes.

2.Who is develope .Net? .Net is developed by Anders Hejlsberg. 3.What is .Net frame work? .Net frame work is a software which is mask the functionalities of OS an d excute the CIL code under it's control. 4.What is CLI? CLI means Common Language Infrastracutre.To develope framework,A set of srecification has been prepaired those specifications are known as CLI Specifica tions. 5.What is CLS? CLS standrs for Common Language Specifications.these are set of rules to provide language interoperbility between the .net languaes most importantly aft er compalition of every .Net lang sholud be CIL code. 6.What is CTS? CTS Standrs for Common type System.All .Net languaes are contain differe nt type of datatypes ,those all data types are must have the same size. 7.What is CLR? CLR Standrs for Common Language Runtime.CLR is convert the CIL code into machine code. 8.What is JIT? JIT Compiler means Just In Time.This JIT Compiler is Convert the IL code into Machine code .It is part of CLR. 9.What is Boxing? To convert valuetype into referance type we call it as Boxing. 10.What is UnBoxing? To convert referance type into value type we call it as UnBoxing.

11.What are the basic pillars of oops? a.Encapsulation. b.Abstraction. c.Inheritance. d.Polymorphisum. a.Encapsulation:Hidding the data under wrapper b.Abstraction:It is the process of hidding the complexcity of data and provide the int erface to consume the functionalities. c.Inheritance:Object of one class can acquire the properties of object of another clas s. d.Polymorphisum:Defining onething in many forms is called polymorphism. 12.What is Method overloading? Method overloading is a process to define multiple methods in a class wi th same name by changing it's signature.

Based on the *NO. of parameters *Type of parameters *Order of parameters. 13.What is Method overriding? If a parent classes method is reimplemented under the child class exactl y with same signature, we call it as method overriding.here we have to take the permission from the parent class method. Parent method-Virtual Child method-Override 14.What is Shadowing or Hidding? If a parent class method is reimplemented under child class exctly with same signature,we call it as method shadowing.here we need not take the permissi on from the parent class. Child Method-New 15.What is Compile time polymorphisum(Early binding)? Method overloading comes under compile time polymorphisum. which method is getting is excuted is identifed at the time of compalition only. 16.What is Run time polymorphisum(Late binding)? Method overriding comes under Runtime polymorphisum. we having the multi plemethods so which method is executed is identified at the time of runtime only . 17.How can we achive Multiple inheritence in c#.Net? we can achive Multiple inheritance in case of interfaces. 18.Abstract method and Class? It is contain only methods in it.the implemention of the body is in pare nt class.by using the override keyword. 19.What is Interface? It is user defined data type.It contains only abstract methods only. 20.What is the difference between the class and structure? Class is reference type and strucutre is value type.memory is allocated on heap and structure memory is allocated in stack area. 21.What is assembly? After compilation of project we can the output file that output is calle d as Assembly. 22.What is Namespace? Namespace is a logical container of type which are used for grouping typ es. 23.How to restrict a class not be accessible for any other class to consume? Declare constrcutors as private. 24.How to restrict a class not to br inherited for any other class? This is can be done by declaring class as sealed. 25.How to restict a class not to be accessible for any other class to consume by creating it's object? This can be done by declaring all the class constructors as protected. 26.

Constructor:It is present under a class which is reponsible for intilizing the varia bles of a class.

You might also like