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

PPTX
OOP - Polymorphism
PPTX
Oops concepts
PDF
Object-Oriented Polymorphism Unleashed
PPTX
Polymorphism in C# Function overloading in C#
PPTX
Polymorphism in java
PPTX
Polymorphism in java
PDF
Object Oriented Programming Concepts
PPTX
Basics of oops concept
OOP - Polymorphism
Oops concepts
Object-Oriented Polymorphism Unleashed
Polymorphism in C# Function overloading in C#
Polymorphism in java
Polymorphism in java
Object Oriented Programming Concepts
Basics of oops concept

What's hot (20)

PDF
Polymorphism In Java
PPTX
Object Oriented Programming - Basic Concepts
PPTX
object oriented programing lecture 1
PPT
PPTX
OOPS features using Objective C
PPTX
Polymorphism and its types
PPTX
PDF
Java Polymorphism
PPT
JAVA Polymorphism
PPTX
the Concept of Object-Oriented Programming
PPTX
Basic Concepts Of OOPS/OOPS in Java,C++
PPTX
Very short OOP Introduction
PPT
Object Oriented Programming Concepts using Java
PPTX
Encapsulation C++
PDF
Concepts of OOPs
PDF
Polymorphism in Java
PPT
Oop concepts
PPTX
encapsulation, inheritance, overriding, overloading
PPTX
Inheritance
Polymorphism In Java
Object Oriented Programming - Basic Concepts
object oriented programing lecture 1
OOPS features using Objective C
Polymorphism and its types
Java Polymorphism
JAVA Polymorphism
the Concept of Object-Oriented Programming
Basic Concepts Of OOPS/OOPS in Java,C++
Very short OOP Introduction
Object Oriented Programming Concepts using Java
Encapsulation C++
Concepts of OOPs
Polymorphism in Java
Oop concepts
encapsulation, inheritance, overriding, overloading
Inheritance
Ad

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

PDF
JAVA-PPT'S.pdf
PPTX
Java OOPS Concept
DOCX
Intervies
PPTX
java_inheritance_oop_20250730110153.pptx
DOCX
Java mcq
PDF
Core_Java_Interview.pdf
PDF
Object Oriented Programming - 7.2. Polymorphism
PPTX
ITTutor Advanced Java (1).pptx
DOC
PPTX
OOP-Advanced Programming with c++
PPTX
C++ programming introduction
PPT
Md02 - Getting Started part-2
PPTX
Polymorphism in OPP, JAVA, Method overload.pptx
PPTX
Selenium Training .pptx
ODP
Patterns in Python
 
PDF
Learn C# Programming Polymorphism & Operator Overloading
PPTX
What is java polymorphism and its types in java training?
DOC
Object oriented programming
DOC
Java interview questions
PPT
Unit 1 Java
JAVA-PPT'S.pdf
Java OOPS Concept
Intervies
java_inheritance_oop_20250730110153.pptx
Java mcq
Core_Java_Interview.pdf
Object Oriented Programming - 7.2. Polymorphism
ITTutor Advanced Java (1).pptx
OOP-Advanced Programming with c++
C++ programming introduction
Md02 - Getting Started part-2
Polymorphism in OPP, JAVA, Method overload.pptx
Selenium Training .pptx
Patterns in Python
 
Learn C# Programming Polymorphism & Operator Overloading
What is java polymorphism and its types in java training?
Object oriented programming
Java interview questions
Unit 1 Java
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
master seminar digital applications in india
PDF
Classroom Observation Tools for Teachers
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Supply Chain Operations Speaking Notes -ICLT Program
master seminar digital applications in india
Classroom Observation Tools for Teachers
2.FourierTransform-ShortQuestionswithAnswers.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial diseases, their pathogenesis and prophylaxis
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
TR - Agricultural Crops Production NC III.pdf
GDM (1) (1).pptx small presentation for students
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Institutional Correction lecture only . . .
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pre independence Education in Inndia.pdf
PPH.pptx obstetrics and gynecology in nursing

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.