SlideShare a Scribd company logo
An Introduction to C#
and
the .NET Framework
Powered by Khubaib
Web Trainer at Ewiglife Cloud Technologies
Recursive Method Call
 A method can call itself.
 Access Specifier
 Return type
 Method name
 Parameter List
 Method body
An Introduction to C# and .NET Framework (Basic)
Recursive
Arrays
 An array stores a fixed-size sequential collection of
elements of the same type.
 Declaring Arrays
 datatype[] arrayName;
Arrays Program
Isn’t?
Array program
Inheritance
 One of the most important concepts
 Inheritance allows us to define a class
in terms of another class
 makes it easier to create and maintain
an application
 Base and Derived Classes
Example
C++ logic
In C we had to code our own bugs. In C++ we can inherit them.
C# - Polymorphism
 The word polymorphism means
having many forms
 'one interface, multiple functions'.
 Static (In static polymorphism, the
response to a function is determined
at the compile time)
 Dynamic(In dynamic polymorphism,
it is decided at run-time.)
Static Polymorphism
 C# provides two techniques to implement static
polymorphism.
Function overloading
Operator overloading
 Function Overloading
 You can have multiple definitions for the same function name in the
same scope
Example function overloading
Dynamic Polymorphism
 C# allows you to create abstract classes that are used to
provide partial class implementation of an interface
 Abstract classes contain abstract methods
 The derived classes have more specialized functionality.
 rules about abstract classes
 You cannot create an instance of an abstract class
 You cannot declare an abstract method outside an abstract
class
 When a class is declared sealed, it cannot be inherited,
abstract classes cannot be declared sealed.
Example
Polymorphism Fact
 A dog, a spider, and a human can all walk at a rate of
speed. Everyone knows this. But, when talking about the
specifics of how they walk, each implementation is
different. A spider has 8 legs and will 'scurry' around very
quickly ( relative ). A dog has 4 legs and will leap and
jump and run around. A human has 2 legs and will place
one in front of the other, enabling them to walk.

More Related Content

What's hot (20)

Polymorphism In Java
Polymorphism In Java
Spotle.ai
 
Object Oriented Programming - Basic Concepts
Object Oriented Programming - Basic Concepts
Arunkumar Kupppuswamy
 
object oriented programing lecture 1
object oriented programing lecture 1
Geophery sanga
 
SEMINAR
SEMINAR
priteshkhandelwal
 
OOPS features using Objective C
OOPS features using Objective C
Tiyasi Acharya
 
Polymorphism and its types
Polymorphism and its types
Suraj Bora
 
Java
Java
NAIM PARVEZ GALIB
 
Oop in kotlin
Oop in kotlin
Abdul Rahman Masri Attal
 
Java Polymorphism
Java Polymorphism
Soba Arjun
 
JAVA Polymorphism
JAVA Polymorphism
Mahi Mca
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Basic Concepts Of OOPS/OOPS in Java,C++
Basic Concepts Of OOPS/OOPS in Java,C++
Guneesh Basundhra
 
Very short OOP Introduction
Very short OOP Introduction
Cristian G
 
Object Oriented Programming Concepts using Java
Object Oriented Programming Concepts using Java
Glenn Guden
 
Encapsulation C++
Encapsulation C++
Hashim Hashim
 
Concepts of OOPs
Concepts of OOPs
Essay Corp
 
Polymorphism in Java
Polymorphism in Java
Java2Blog
 
Oop concepts
Oop concepts
Ritu Mangla
 
encapsulation, inheritance, overriding, overloading
encapsulation, inheritance, overriding, overloading
Shivam Singhal
 
Inheritance
Inheritance
Sapna Sharma
 
Polymorphism In Java
Polymorphism In Java
Spotle.ai
 
Object Oriented Programming - Basic Concepts
Object Oriented Programming - Basic Concepts
Arunkumar Kupppuswamy
 
object oriented programing lecture 1
object oriented programing lecture 1
Geophery sanga
 
OOPS features using Objective C
OOPS features using Objective C
Tiyasi Acharya
 
Polymorphism and its types
Polymorphism and its types
Suraj Bora
 
Java Polymorphism
Java Polymorphism
Soba Arjun
 
JAVA Polymorphism
JAVA Polymorphism
Mahi Mca
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Basic Concepts Of OOPS/OOPS in Java,C++
Basic Concepts Of OOPS/OOPS in Java,C++
Guneesh Basundhra
 
Very short OOP Introduction
Very short OOP Introduction
Cristian G
 
Object Oriented Programming Concepts using Java
Object Oriented Programming Concepts using Java
Glenn Guden
 
Concepts of OOPs
Concepts of OOPs
Essay Corp
 
Polymorphism in Java
Polymorphism in Java
Java2Blog
 
encapsulation, inheritance, overriding, overloading
encapsulation, inheritance, overriding, overloading
Shivam Singhal
 

Similar to An Introduction to C# and .NET Framework (Basic) (20)

C# interview
C# interview
Thomson Reuters
 
Btech chapter notes batcha ros zir skznzjsbaajz z
Btech chapter notes batcha ros zir skznzjsbaajz z
bhatiaanushka101
 
Learn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator Overloading
Eng Teong Cheah
 
Opps
Opps
Lalit Kale
 
28csharp
28csharp
Sireesh K
 
28c
28c
Sireesh K
 
Polymorphism, Abstarct Class and Interface in C#
Polymorphism, Abstarct Class and Interface in C#
Umar Farooq
 
Polymorphism (2)
Polymorphism (2)
Army Public School and College -Faisal
 
C# - Igor Ralić
C# - Igor Ralić
Software StartUp Academy Osijek
 
Oops concept on c#
Oops concept on c#
baabtra.com - No. 1 supplier of quality freshers
 
Introduction to C#
Introduction to C#
ANURAG SINGH
 
CSharp_03_Inheritance_introduction_with_examples
CSharp_03_Inheritance_introduction_with_examples
Ranjithsingh20
 
C# Unit 2 notes
C# Unit 2 notes
Sudarshan Dhondaley
 
CSharp presentation and software developement
CSharp presentation and software developement
frwebhelp
 
Visula C# Programming Lecture 8
Visula C# Programming Lecture 8
Abou Bakr Ashraf
 
Testing for share
Testing for share
Rajeev Mehta
 
Basic c#
Basic c#
kishore4268
 
Whats New In C# 4 0 - NetPonto
Whats New In C# 4 0 - NetPonto
Paulo Morgado
 
Xamarin: Inheritance and Polymorphism
Xamarin: Inheritance and Polymorphism
Eng Teong Cheah
 
20. Object-Oriented Programming Fundamental Principles
20. Object-Oriented Programming Fundamental Principles
Intro C# Book
 
Ad

Recently uploaded (20)

ABCs of Bookkeeping for Nonprofits TechSoup.pdf
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
TechSoup
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
How to Manage Inventory Movement in Odoo 18 POS
How to Manage Inventory Movement in Odoo 18 POS
Celine George
 
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
GEOGRAPHY-Study Material [ Class 10th] .pdf
GEOGRAPHY-Study Material [ Class 10th] .pdf
SHERAZ AHMAD LONE
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Revista digital preescolar en transformación
Revista digital preescolar en transformación
guerragallardo26
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Vikas Bansal Himachal Pradesh: A Visionary Transforming Himachal’s Educationa...
Vikas Bansal Himachal Pradesh: A Visionary Transforming Himachal’s Educationa...
Himalayan Group of Professional Institutions (HGPI)
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
Exploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle School
Marie
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
BINARY files CSV files JSON files with example.pptx
BINARY files CSV files JSON files with example.pptx
Ramakrishna Reddy Bijjam
 
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
TechSoup
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
How to Manage Inventory Movement in Odoo 18 POS
How to Manage Inventory Movement in Odoo 18 POS
Celine George
 
GEOGRAPHY-Study Material [ Class 10th] .pdf
GEOGRAPHY-Study Material [ Class 10th] .pdf
SHERAZ AHMAD LONE
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Revista digital preescolar en transformación
Revista digital preescolar en transformación
guerragallardo26
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
Exploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle School
Marie
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
BINARY files CSV files JSON files with example.pptx
BINARY files CSV files JSON files with example.pptx
Ramakrishna Reddy Bijjam
 
Ad

An Introduction to C# and .NET Framework (Basic)

  • 1. An Introduction to C# and the .NET Framework Powered by Khubaib Web Trainer at Ewiglife Cloud Technologies
  • 2. Recursive Method Call  A method can call itself.  Access Specifier  Return type  Method name  Parameter List  Method body
  • 5. Arrays  An array stores a fixed-size sequential collection of elements of the same type.  Declaring Arrays  datatype[] arrayName;
  • 9. Inheritance  One of the most important concepts  Inheritance allows us to define a class in terms of another class  makes it easier to create and maintain an application  Base and Derived Classes
  • 11. C++ logic In C we had to code our own bugs. In C++ we can inherit them.
  • 12. C# - Polymorphism  The word polymorphism means having many forms  'one interface, multiple functions'.  Static (In static polymorphism, the response to a function is determined at the compile time)  Dynamic(In dynamic polymorphism, it is decided at run-time.)
  • 13. Static Polymorphism  C# provides two techniques to implement static polymorphism. Function overloading Operator overloading  Function Overloading  You can have multiple definitions for the same function name in the same scope
  • 15. Dynamic Polymorphism  C# allows you to create abstract classes that are used to provide partial class implementation of an interface  Abstract classes contain abstract methods  The derived classes have more specialized functionality.  rules about abstract classes  You cannot create an instance of an abstract class  You cannot declare an abstract method outside an abstract class  When a class is declared sealed, it cannot be inherited, abstract classes cannot be declared sealed.
  • 17. Polymorphism Fact  A dog, a spider, and a human can all walk at a rate of speed. Everyone knows this. But, when talking about the specifics of how they walk, each implementation is different. A spider has 8 legs and will 'scurry' around very quickly ( relative ). A dog has 4 legs and will leap and jump and run around. A human has 2 legs and will place one in front of the other, enabling them to walk.