Define C# ?
C# (pronounced as 'C sharp') is programming Language
developed by Microsoft Corporation. It is a fully object oriented language like
java and is the first component -oriented language. It is mainly used for NET
Framework. It is a purely object oriented language suitable for developing
Web-based applications.
What is new in C#?
C# is mainly used for
developing system for the .NET platform.
NET Framework provides some services such as
- .NET infrastructure tools
- .NET user experience
- .NET building block
- .NET device software
Orgins of .NET Technology:
The .Net has developed
through three important phases of development
- OLE technology
- COM technology
- NET technology
OLE Technology
OLE(Object Linking and
Embedding) technology was developed by Microsoft .
It provides interprocess communications.
- To embed documents from one application into another application
- To enable one application to manipulate objects located in another application.
e.g) C#.NET windows
program store the data into MSAccess or SQL.
COM Technology
COM(Component Object
Model) is componentware .It is inter-module communication.
- Reduces the overall complexity of software.
- Enables distributed development across multiple organizations or departments.
.NET Technology
.NET is network technology
provides Intermediate Language to web applications .It is intersite
communication.
What is difference between Methods and Functions?
Functions is defined as outside of the class . e.g.) main() in C++,whereas methods are
declared inside of the class .e.g) Main()
in C#.
What is difference between
Constructors and Methods?
Constructor is special
member function .Constructor name same as class name, where as methods are not
same as class name. whenever an object is created the constructor is
automatically invoked.
e.g) class sample
{
Sample() //constructor
{
//constructor
without parameter
}
Sam() //method
{
//method without parameter
}
}
No comments:
Post a Comment