Sunteți pe pagina 1din 17

Guided by: Presented by:


Mr.Chandele M. N. Mr.Nitin Boga
Abstract
Illl in this sessio I give first introduce to c#. Net
And its uses and advantages and disadvantages
Contents of C#
⦿ Introduction to C#
⦿ What is C#
⦿ Operators of c#
⦿ Classes and object
⦿ Constructor
⦿ Loops in c#.net
⦿ Features of c#
⦿ Advantages of c# programming
⦿ References
⦿ Conclusion
Introduction C#

▪C# is created in 1999 by lead architect of Microsoft .


▪Has gone through several versions currently at
version 4.0(released 2010).
what is c#
• C# is a modern, general-purpose, object -oriented
programming language developed by Microsoft and
approved by European Computer Manufacturers
Association (ECMA)and International Standards
Organization (ISO).
Operator of c#
⦿ Every programming language uses operators,
through which we can performe
⦿ arithmetic -, +, *, /, %, ++, --
⦿ logical &&, ||, !, ^
⦿ binary &, |, ^, ~, <<, >>
⦿ comparison ==,!=, >, <, >=, <=
⦿ assignment =, +=, -=, *=, /=, %=, &=, |=, ^=, <<=,
>>=
⦿ string concatenation +
Classes & Objects
⦿ Class:
● It is a user defined data type, which holds its own data
members and member functions,
● A class enables you to create your own custom types by
grouping together variables of other types, methods and
events.
○ Syntax:
Class class_name
{
class statements;
}
⦿ Object:
● Objects are the basic runtime entity in an object
oriented programing
● We can create many object of same class
○ Syntax of creating object:
Class_name object_name=new constructor_name();
What is constructor?
⦿ A special method of the class that will be
automatically invoked when an instance of the
class is created.
⦿ Constructor doesn’t have any return type
⦿ Types:
● Default constructor
● Parameterized constructor
● Copy constructor
● Static constructor
● Private constructor
Loops in c#.net
⦿ There are four types of loop in c#.net
● For loop
● While loop
● Do-while loop
● For-each loop
⦿ For loop:
● For-loops are a slightly more complicated than while and
do-while loops
● on the other hand they can solve more complicated tasks
with less code.
○ Syntax:
for(initilization;condition checking;incr/decr)
{
loop statements;
}
⦿ While loop:
● One of the simplest and most commonly used loops is
while.
● Syntax:
while (condition)
{
loop body;
}
features of c#

⦿ Easy-to-use
⦿ Simple Multithreading
⦿ Integration with Windows
❖Advantages of c# programming
⦿ C# is pure object-oriented
⦿ Versatility
⦿ C# is more type safe
⦿ Combines the functionality of the c and c++ languages with
visual basic
Conclusion
▪ C# is an elegant and type-safe object-oriented
language developed by Microsoft.
▪ User friendly IDE of c#
References

⦿ www.study mafya.com
⦿ www.C# tutorial point.com
Thank you

S-ar putea să vă placă și