SlideShare une entreprise Scribd logo
1  sur  17
Ashoka R K T
@ashoka_rkt
Get this session’s stuff at http://c-smil.es/oopstalk
OOPs
codeSmiles.comblog:
What are we going to see?
• Object oriented thinking
• Object oriented programming
Object Oriented thinking
• What comes to your mind hearing the word
“Object”?
• Why do we need software?
– To manage things(objects)
• What is present in a software?
– Objects are present in Software
What are we going to see in OOP
• Classes
• Objects
• Properties and Fields
• Methods
• Interfaces
• And the variations of the above, but these are
the base
Classes
• What is “Class”
• Class means classification of objects
• ..that’s it
• We use classes to classify objects
Creating objects of a Class
• Employee emp = new Employee();
Objects
• We already discussed, so.. what are objects?
• We create objects using a class’ specification
Properties & Fields
Methods
Interfaces
• What is “Interface”
• Keep in mind Hardware Interface, User
Interface, etc
Constructors & Destructors
Access Modifiers
• Public - everywhere
• Private – same class
• Protected – accessible from derived class
• Internal - same assembly
• protected internal – different assembly but
should inherit – rarely used
Static Members
• Non Instance specific
Inheritance
Generics
Delegates
public delegate void DelegateMethod(string s);
Calling code:
public static void Method1(string s1)
{
…
}
…
DelegateMethod del = Method1;
del(“Hi”);
Thank You
• Get this session’s stuff at http://c-smil.es/oopstalk
– Slides & code samples
blog:
@ashoka_rkt
codeSmiles.com

Contenu connexe

Tendances

Code reviews
Code reviewsCode reviews
Code reviews
Roger Xia
 
Week07
Week07Week07
Week07
hccit
 
Tulika Biswas CV (1)
Tulika Biswas CV (1)Tulika Biswas CV (1)
Tulika Biswas CV (1)
Tulika Biswas
 
Intro to java programming
Intro to java programmingIntro to java programming
Intro to java programming
Leah Stephens
 

Tendances (20)

RedisConf18 - Amazing User Experiences
RedisConf18 - Amazing User Experiences   RedisConf18 - Amazing User Experiences
RedisConf18 - Amazing User Experiences
 
Code reviews
Code reviewsCode reviews
Code reviews
 
Introduction to value types
Introduction to value typesIntroduction to value types
Introduction to value types
 
Week07
Week07Week07
Week07
 
Tulika Biswas CV (1)
Tulika Biswas CV (1)Tulika Biswas CV (1)
Tulika Biswas CV (1)
 
Intelligent System Scripting Language - Conceptual Presentation
Intelligent System Scripting Language - Conceptual PresentationIntelligent System Scripting Language - Conceptual Presentation
Intelligent System Scripting Language - Conceptual Presentation
 
Introduction to oops
Introduction to oopsIntroduction to oops
Introduction to oops
 
Ui development Online Training from AkiraIT Solutions
Ui development Online Training from AkiraIT SolutionsUi development Online Training from AkiraIT Solutions
Ui development Online Training from AkiraIT Solutions
 
Php traits
Php traitsPhp traits
Php traits
 
JOSA TechTalks - Compilers, Transpilers, and Why You Should Care
JOSA TechTalks - Compilers, Transpilers, and Why You Should CareJOSA TechTalks - Compilers, Transpilers, and Why You Should Care
JOSA TechTalks - Compilers, Transpilers, and Why You Should Care
 
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
Microsoft Azure DocumentDB -  Global Azure Bootcamp 2016Microsoft Azure DocumentDB -  Global Azure Bootcamp 2016
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
 
Sane CSS - A modern approach to CSS
Sane CSS - A modern approach to CSSSane CSS - A modern approach to CSS
Sane CSS - A modern approach to CSS
 
Learn Ruby 2011 - Session 2
Learn Ruby 2011 - Session 2Learn Ruby 2011 - Session 2
Learn Ruby 2011 - Session 2
 
Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3Learn Ruby 2011 - Session 3
Learn Ruby 2011 - Session 3
 
Building Your Own DSL with Xtext
Building Your Own DSL with XtextBuilding Your Own DSL with Xtext
Building Your Own DSL with Xtext
 
Java Persistence API (JPA) - A Brief Overview
Java Persistence API (JPA) - A Brief OverviewJava Persistence API (JPA) - A Brief Overview
Java Persistence API (JPA) - A Brief Overview
 
Scala Introduction - Meetup Scaladores RJ
Scala Introduction - Meetup Scaladores RJScala Introduction - Meetup Scaladores RJ
Scala Introduction - Meetup Scaladores RJ
 
Object oriented programming OOP
Object oriented programming OOPObject oriented programming OOP
Object oriented programming OOP
 
Intro to java programming
Intro to java programmingIntro to java programming
Intro to java programming
 
Introduction to java programming
Introduction to java programmingIntroduction to java programming
Introduction to java programming
 

En vedette

009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studio
let's go to study
 
Your 2012 Marketing Plan: Simple & Powerful
Your 2012 Marketing Plan: Simple & PowerfulYour 2012 Marketing Plan: Simple & Powerful
Your 2012 Marketing Plan: Simple & Powerful
Infusionsoft
 

En vedette (20)

Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
 
Javascript and Jquery: The connection between
Javascript and Jquery: The connection betweenJavascript and Jquery: The connection between
Javascript and Jquery: The connection between
 
009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studio
 
ASP.NET Core deployment options
ASP.NET Core deployment optionsASP.NET Core deployment options
ASP.NET Core deployment options
 
Back to the Basics - 1 - Introduction to Web Development
Back to the Basics - 1 - Introduction to Web DevelopmentBack to the Basics - 1 - Introduction to Web Development
Back to the Basics - 1 - Introduction to Web Development
 
.Net framework architecture
.Net framework architecture.Net framework architecture
.Net framework architecture
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
C# fundamentals Part 2
C# fundamentals Part 2C# fundamentals Part 2
C# fundamentals Part 2
 
Future Web Trends - at Innovation series with Jimmy Wales
Future Web Trends - at Innovation series with Jimmy WalesFuture Web Trends - at Innovation series with Jimmy Wales
Future Web Trends - at Innovation series with Jimmy Wales
 
Your 2012 Marketing Plan: Simple & Powerful
Your 2012 Marketing Plan: Simple & PowerfulYour 2012 Marketing Plan: Simple & Powerful
Your 2012 Marketing Plan: Simple & Powerful
 
HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
 
Asp.net page lifecycle
Asp.net page lifecycleAsp.net page lifecycle
Asp.net page lifecycle
 
HTML 5
HTML 5HTML 5
HTML 5
 
HTML 5 & CSS 3
HTML 5 & CSS 3HTML 5 & CSS 3
HTML 5 & CSS 3
 
Introduction To Website Development
Introduction To Website DevelopmentIntroduction To Website Development
Introduction To Website Development
 
CMS 120: Introduction to Building a Website
CMS 120: Introduction to Building a WebsiteCMS 120: Introduction to Building a Website
CMS 120: Introduction to Building a Website
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
 
Gears and HTML 5 @media Ajax London 2008
Gears and HTML 5 @media Ajax London 2008Gears and HTML 5 @media Ajax London 2008
Gears and HTML 5 @media Ajax London 2008
 
Oops abap fundamental
Oops abap fundamentalOops abap fundamental
Oops abap fundamental
 
Ten Commandments of Secure Coding - OWASP Top Ten Proactive Controls
Ten Commandments of Secure Coding - OWASP Top Ten Proactive ControlsTen Commandments of Secure Coding - OWASP Top Ten Proactive Controls
Ten Commandments of Secure Coding - OWASP Top Ten Proactive Controls
 

Similaire à OOPs fundamentals session for freshers in my office (Aug 5, 13)

Intro to Objective C
Intro to Objective CIntro to Objective C
Intro to Objective C
Ashiq Uz Zoha
 
Orthogonality: A Strategy for Reusable Code
Orthogonality: A Strategy for Reusable CodeOrthogonality: A Strategy for Reusable Code
Orthogonality: A Strategy for Reusable Code
rsebbe
 

Similaire à OOPs fundamentals session for freshers in my office (Aug 5, 13) (20)

C++ in object oriented programming
C++ in object oriented programmingC++ in object oriented programming
C++ in object oriented programming
 
introduction of Object oriented programming
introduction of Object oriented programmingintroduction of Object oriented programming
introduction of Object oriented programming
 
Intro to Objective C
Intro to Objective CIntro to Objective C
Intro to Objective C
 
Software enginering.group-no-11 (1)
Software enginering.group-no-11 (1)Software enginering.group-no-11 (1)
Software enginering.group-no-11 (1)
 
CPP13 - Object Orientation
CPP13 - Object OrientationCPP13 - Object Orientation
CPP13 - Object Orientation
 
C# by Zaheer Abbas Aghani
C# by Zaheer Abbas AghaniC# by Zaheer Abbas Aghani
C# by Zaheer Abbas Aghani
 
C# by Zaheer Abbas Aghani
C# by Zaheer Abbas AghaniC# by Zaheer Abbas Aghani
C# by Zaheer Abbas Aghani
 
Chapter1_ObjectOrientedProgramming.pptx
Chapter1_ObjectOrientedProgramming.pptxChapter1_ObjectOrientedProgramming.pptx
Chapter1_ObjectOrientedProgramming.pptx
 
Introducing object oriented programming (oop)
Introducing object oriented programming (oop)Introducing object oriented programming (oop)
Introducing object oriented programming (oop)
 
12_oop templa.pptx
12_oop templa.pptx12_oop templa.pptx
12_oop templa.pptx
 
The Developers World
The Developers WorldThe Developers World
The Developers World
 
Introduction to c ++ part -1
Introduction to c ++   part -1Introduction to c ++   part -1
Introduction to c ++ part -1
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Introduction to Object Oriented Programming & Design Principles
Introduction to Object Oriented Programming & Design PrinciplesIntroduction to Object Oriented Programming & Design Principles
Introduction to Object Oriented Programming & Design Principles
 
Complete PPT about the Java lokesh kept it
Complete PPT about the Java lokesh kept itComplete PPT about the Java lokesh kept it
Complete PPT about the Java lokesh kept it
 
Object-Oriented Programming in Java (Module 1)
Object-Oriented Programming in Java (Module 1)Object-Oriented Programming in Java (Module 1)
Object-Oriented Programming in Java (Module 1)
 
Introduction to Object Oriented Programming & Design Principles
Introduction to Object Oriented Programming & Design PrinciplesIntroduction to Object Oriented Programming & Design Principles
Introduction to Object Oriented Programming & Design Principles
 
SE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPTSE-IT JAVA LAB OOP CONCEPT
SE-IT JAVA LAB OOP CONCEPT
 
Computer Science ACW Intro to OOP L7.pptx
Computer Science ACW Intro to OOP L7.pptxComputer Science ACW Intro to OOP L7.pptx
Computer Science ACW Intro to OOP L7.pptx
 
Orthogonality: A Strategy for Reusable Code
Orthogonality: A Strategy for Reusable CodeOrthogonality: A Strategy for Reusable Code
Orthogonality: A Strategy for Reusable Code
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

OOPs fundamentals session for freshers in my office (Aug 5, 13)

  • 1. Ashoka R K T @ashoka_rkt Get this session’s stuff at http://c-smil.es/oopstalk OOPs codeSmiles.comblog:
  • 2. What are we going to see? • Object oriented thinking • Object oriented programming
  • 3. Object Oriented thinking • What comes to your mind hearing the word “Object”? • Why do we need software? – To manage things(objects) • What is present in a software? – Objects are present in Software
  • 4. What are we going to see in OOP • Classes • Objects • Properties and Fields • Methods • Interfaces • And the variations of the above, but these are the base
  • 5. Classes • What is “Class” • Class means classification of objects • ..that’s it • We use classes to classify objects
  • 6. Creating objects of a Class • Employee emp = new Employee();
  • 7. Objects • We already discussed, so.. what are objects? • We create objects using a class’ specification
  • 10. Interfaces • What is “Interface” • Keep in mind Hardware Interface, User Interface, etc
  • 12. Access Modifiers • Public - everywhere • Private – same class • Protected – accessible from derived class • Internal - same assembly • protected internal – different assembly but should inherit – rarely used
  • 13. Static Members • Non Instance specific
  • 16. Delegates public delegate void DelegateMethod(string s); Calling code: public static void Method1(string s1) { … } … DelegateMethod del = Method1; del(“Hi”);
  • 17. Thank You • Get this session’s stuff at http://c-smil.es/oopstalk – Slides & code samples blog: @ashoka_rkt codeSmiles.com