SlideShare ist ein Scribd-Unternehmen logo
1 von 15
C# Basics Muhammad Kamran Rafi [email_address]
Variables Declarations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Using Variables ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Simple Arrays ,[object Object],[object Object],[object Object],[object Object],[object Object]
Looping Statements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Decision Statements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Almost Just Like C++
Simple Console Output ,[object Object],[object Object],[object Object],[object Object]
Simple Console Input ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Class/Interface Definitions Like Java ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Static Classes ,[object Object],[object Object],[object Object],[object Object]
Abstract Classes ,[object Object],[object Object],[object Object],[object Object]
Inheritance (C++ syntax) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Constructor public Person (string name, int ssn)  { } public Employee(string name, int ssn, int phone) : base(name, ssn) { } public Employee(string name) : this (name, 999, 999) { }
Overriding Methods ,[object Object],[object Object],[object Object],[object Object],[object Object]
Overloading operators ,[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt? (18)

Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
C programming(Part 1)
C programming(Part 1)C programming(Part 1)
C programming(Part 1)
 
Ch7 Basic Types
Ch7 Basic TypesCh7 Basic Types
Ch7 Basic Types
 
pointers, virtual functions and polymorphisms in c++ || in cpp
pointers, virtual functions and polymorphisms in c++ || in cpppointers, virtual functions and polymorphisms in c++ || in cpp
pointers, virtual functions and polymorphisms in c++ || in cpp
 
C Programming Language Step by Step Part 3
C Programming Language Step by Step Part 3C Programming Language Step by Step Part 3
C Programming Language Step by Step Part 3
 
CP Handout#9
CP Handout#9CP Handout#9
CP Handout#9
 
Dr archana dhawan bajaj - c# dot net
Dr archana dhawan bajaj - c# dot netDr archana dhawan bajaj - c# dot net
Dr archana dhawan bajaj - c# dot net
 
Chap 4 c++
Chap 4 c++Chap 4 c++
Chap 4 c++
 
Reflection in Go
Reflection in GoReflection in Go
Reflection in Go
 
Chap 4 c++
Chap 4 c++Chap 4 c++
Chap 4 c++
 
Unit i intro-operators
Unit   i intro-operatorsUnit   i intro-operators
Unit i intro-operators
 
Operators
OperatorsOperators
Operators
 
Object Oriented Programming with C++
Object Oriented Programming with C++Object Oriented Programming with C++
Object Oriented Programming with C++
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Objective-C to Swift - Swift Cloud Workshop 3
Objective-C to Swift - Swift Cloud Workshop 3Objective-C to Swift - Swift Cloud Workshop 3
Objective-C to Swift - Swift Cloud Workshop 3
 
Type conversions
Type conversionsType conversions
Type conversions
 
Pi j1.2 variable-assignment
Pi j1.2 variable-assignmentPi j1.2 variable-assignment
Pi j1.2 variable-assignment
 
Variables and data types IN SWIFT
 Variables and data types IN SWIFT Variables and data types IN SWIFT
Variables and data types IN SWIFT
 

Ähnlich wie C sharp basics

Ähnlich wie C sharp basics (20)

Ppt of c vs c#
Ppt of c vs c#Ppt of c vs c#
Ppt of c vs c#
 
Notes(1).pptx
Notes(1).pptxNotes(1).pptx
Notes(1).pptx
 
LECTURE 3 LOOPS, ARRAYS.pdf
LECTURE 3 LOOPS, ARRAYS.pdfLECTURE 3 LOOPS, ARRAYS.pdf
LECTURE 3 LOOPS, ARRAYS.pdf
 
Chapter1.pptx
Chapter1.pptxChapter1.pptx
Chapter1.pptx
 
LECTURE 3 LOOPS, ARRAYS.pdf
LECTURE 3 LOOPS, ARRAYS.pdfLECTURE 3 LOOPS, ARRAYS.pdf
LECTURE 3 LOOPS, ARRAYS.pdf
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf  C# program434090527-C-Cheat-Sheet. pdf  C# program
434090527-C-Cheat-Sheet. pdf C# program
 
Cpprm
CpprmCpprm
Cpprm
 
OOC MODULE1.pptx
OOC MODULE1.pptxOOC MODULE1.pptx
OOC MODULE1.pptx
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Introduction to C#
Introduction to C#Introduction to C#
Introduction to C#
 
c_tutorial_2.ppt
c_tutorial_2.pptc_tutorial_2.ppt
c_tutorial_2.ppt
 
LEARN C#
LEARN C#LEARN C#
LEARN C#
 
Programming in C (part 2)
Programming in C (part 2)Programming in C (part 2)
Programming in C (part 2)
 
02basics
02basics02basics
02basics
 
PROGRAMMING IN C - Inroduction.pptx
PROGRAMMING IN C - Inroduction.pptxPROGRAMMING IN C - Inroduction.pptx
PROGRAMMING IN C - Inroduction.pptx
 
Visual c sharp
Visual c sharpVisual c sharp
Visual c sharp
 
C++ tutorials
C++ tutorialsC++ tutorials
C++ tutorials
 
20.1 Java working with abstraction
20.1 Java working with abstraction20.1 Java working with abstraction
20.1 Java working with abstraction
 
java tutorial 2
 java tutorial 2 java tutorial 2
java tutorial 2
 
C# - Part 1
C# - Part 1C# - Part 1
C# - Part 1
 

C sharp basics

  • 1. C# Basics Muhammad Kamran Rafi [email_address]
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Constructor public Person (string name, int ssn) { } public Employee(string name, int ssn, int phone) : base(name, ssn) { } public Employee(string name) : this (name, 999, 999) { }
  • 14.
  • 15.