SlideShare a Scribd company logo
1 of 14
I am a person
I have a name which is Kulari
I have a surname Lokuge
I have a Birthday
I have a height



 I work at a University in Melbourne
 I drive to work about 15 km
 I write research papers
 I supervise projects
 I play the piano
 I walk with my dog everyday
Name: Mike, Chalin, Mike, Salime, Irine, Isesak Water Victoria,
Jakson, William, Mosses, John, Salina, Mosses, Nasa, Mervin, Gitida,
Habats, Rita, John, Sarah, Jim, Joseph, Roset, Hamet, Rasberis,
Geroge

University year:
Age:
Height:



What are you good at?
Playing sports?
Cooking?
Reading?
Writing?
Name:         Name:
Age:          Age:
Height:       Height:



Activities:   Activities:
Talk          Talk
Read          Read
Write         Write
Walk          Walk
Person
              Kulari
Name:
Age:          Sam
Height:
              Peter

Activities:
Talk
Read
Write
Walk
// smallobj.cpp
// demonstrates a small, simple object
#include <iostream>
using namespace std; ////////////////////////////////////////////////////
class smallobj               //declare a class
    {  
                                                                                          ?
                                                                                   ?
       private:
               int somedata;          //class data
        public:     
               void setdata(int d)    //member function to set data
                         { somedata = d; }
                void showdata()        //member function to display data        
                           { cout << "Data is " << somedata << endl; }  
   };
      ////////////////////////////////////////////////////////////////
       int main()   
           {   
             smallobj s1, s2;   //define two objects of class smallobj  
             s1.setdata(1066);  //call member function to set data   
             s2.setdata(1776);    s1.showdata();     //call member function to display data   
Private – generally data is hidden within the class so that it
will be safe from accidental manipulations

Public - generally functions are public so that they can be
accessed from outside the class

Is this a Rule?      No




       The data can be public and some functions can be private
Person




         Lecturer         Student           Admin




Senior         Junior   Final       First
   Object-oriented languages like C++ enable
    you to create your own data types.

   Why is it important?
   New user defined data types make
    programs
    › easier to visualize and implement from designs.
    › reusable.
    › easy to modify and enhance new data types as
      programs evolve and specifications change.
    › New data types let you create objects with
      simple declarations.
   An object is an instantiation of a data
    type.

   Examples.
    › Person p;
    › Window w;
    › Window object Database ood;
   Do you know what this is?

 Yes
 No
   3 +5
   45.1 + .5
   What about this?    +
               +


            +       +
 Contact klokuge@gmail.com
 LinkedIn: klokuge
 Website: http://kulari.weebly.com

More Related Content

Viewers also liked

Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingMH Abid
 
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)Michael Redlich
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programmingthe Concept of Object-Oriented Programming
the Concept of Object-Oriented ProgrammingAida Ramlan II
 
OOP->A Bird's-eye view
OOP->A Bird's-eye viewOOP->A Bird's-eye view
OOP->A Bird's-eye viewSaugata Bose
 
itft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in javaitft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in javaAtul Sehdev
 
PHP - Introduction to Object Oriented Programming with PHP
PHP -  Introduction to  Object Oriented Programming with PHPPHP -  Introduction to  Object Oriented Programming with PHP
PHP - Introduction to Object Oriented Programming with PHPVibrant Technologies & Computers
 
An Introduction to Object-Oriented Programming (DrupalCamp North 2015)
An Introduction to Object-Oriented Programming (DrupalCamp North 2015)An Introduction to Object-Oriented Programming (DrupalCamp North 2015)
An Introduction to Object-Oriented Programming (DrupalCamp North 2015)Bart Feenstra
 
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software DevelopmentChapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software DevelopmentEduardo Bergavera
 
Object Oriented Programming in Java _lecture 1
Object Oriented Programming in Java _lecture 1Object Oriented Programming in Java _lecture 1
Object Oriented Programming in Java _lecture 1Mahmoud Alfarra
 
#OOP_D_ITS - 1st - Introduction To Object Oriented Programming
#OOP_D_ITS - 1st - Introduction To Object Oriented Programming#OOP_D_ITS - 1st - Introduction To Object Oriented Programming
#OOP_D_ITS - 1st - Introduction To Object Oriented ProgrammingHadziq Fabroyir
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)Jay Patel
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops conceptsNilesh Dalvi
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingMoutaz Haddara
 

Viewers also liked (14)

Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programmingthe Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
 
OOP->A Bird's-eye view
OOP->A Bird's-eye viewOOP->A Bird's-eye view
OOP->A Bird's-eye view
 
itft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in javaitft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in java
 
PHP - Introduction to Object Oriented Programming with PHP
PHP -  Introduction to  Object Oriented Programming with PHPPHP -  Introduction to  Object Oriented Programming with PHP
PHP - Introduction to Object Oriented Programming with PHP
 
An Introduction to Object-Oriented Programming (DrupalCamp North 2015)
An Introduction to Object-Oriented Programming (DrupalCamp North 2015)An Introduction to Object-Oriented Programming (DrupalCamp North 2015)
An Introduction to Object-Oriented Programming (DrupalCamp North 2015)
 
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software DevelopmentChapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software Development
 
Object Oriented Programming in Java _lecture 1
Object Oriented Programming in Java _lecture 1Object Oriented Programming in Java _lecture 1
Object Oriented Programming in Java _lecture 1
 
#OOP_D_ITS - 1st - Introduction To Object Oriented Programming
#OOP_D_ITS - 1st - Introduction To Object Oriented Programming#OOP_D_ITS - 1st - Introduction To Object Oriented Programming
#OOP_D_ITS - 1st - Introduction To Object Oriented Programming
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Oops ppt
Oops pptOops ppt
Oops ppt
 

Similar to Introduction to Object Oriented Programming

Classes and objects
Classes and objectsClasses and objects
Classes and objectsShahid Javid
 
Classes, objects and methods
Classes, objects and methodsClasses, objects and methods
Classes, objects and methodsfarhan amjad
 
Object oriented programming 2
Object oriented programming 2Object oriented programming 2
Object oriented programming 2Aadil Ansari
 
Object Oriented Programming Constructors & Destructors
Object Oriented Programming  Constructors &  DestructorsObject Oriented Programming  Constructors &  Destructors
Object Oriented Programming Constructors & Destructorsanitashinde33
 
Object and class presentation
Object and class presentationObject and class presentation
Object and class presentationnafisa rahman
 
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEmStudent DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEmhome
 
CSharp presentation and software developement
CSharp presentation and software developementCSharp presentation and software developement
CSharp presentation and software developementfrwebhelp
 
Oop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer MelayiOop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer MelayiMuhammed Thanveer M
 
Android | Busy Java Developers Guide to Android: Persistence | Ted Neward
Android | Busy Java Developers Guide to Android: Persistence | Ted NewardAndroid | Busy Java Developers Guide to Android: Persistence | Ted Neward
Android | Busy Java Developers Guide to Android: Persistence | Ted NewardJAX London
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingsana younas
 
classes & objects.ppt
classes & objects.pptclasses & objects.ppt
classes & objects.pptBArulmozhi
 
Lecture01 object oriented-programming
Lecture01 object oriented-programmingLecture01 object oriented-programming
Lecture01 object oriented-programmingHariz Mustafa
 
Oop lec 4(oop design, style, characteristics)
Oop lec 4(oop design, style, characteristics)Oop lec 4(oop design, style, characteristics)
Oop lec 4(oop design, style, characteristics)Asfand Hassan
 
C++ programming introduction
C++ programming introductionC++ programming introduction
C++ programming introductionsandeep54552
 
The good, the bad and the SOLID
The good, the bad and the SOLIDThe good, the bad and the SOLID
The good, the bad and the SOLIDFrikkie van Biljon
 
Questions On The Code And Core Module
Questions On The Code And Core ModuleQuestions On The Code And Core Module
Questions On The Code And Core ModuleKatie Gulley
 

Similar to Introduction to Object Oriented Programming (20)

Classes and objects
Classes and objectsClasses and objects
Classes and objects
 
Classes, objects and methods
Classes, objects and methodsClasses, objects and methods
Classes, objects and methods
 
oopusingc.pptx
oopusingc.pptxoopusingc.pptx
oopusingc.pptx
 
Object oriented programming 2
Object oriented programming 2Object oriented programming 2
Object oriented programming 2
 
Object Oriented Programming Constructors & Destructors
Object Oriented Programming  Constructors &  DestructorsObject Oriented Programming  Constructors &  Destructors
Object Oriented Programming Constructors & Destructors
 
Lab 4 (1).pdf
Lab 4 (1).pdfLab 4 (1).pdf
Lab 4 (1).pdf
 
Object and class presentation
Object and class presentationObject and class presentation
Object and class presentation
 
Student DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEmStudent DATABASE MANAGeMEnT SysTEm
Student DATABASE MANAGeMEnT SysTEm
 
CSharp presentation and software developement
CSharp presentation and software developementCSharp presentation and software developement
CSharp presentation and software developement
 
Clean Code 2
Clean Code 2Clean Code 2
Clean Code 2
 
Oop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer MelayiOop concept in c++ by MUhammed Thanveer Melayi
Oop concept in c++ by MUhammed Thanveer Melayi
 
Android | Busy Java Developers Guide to Android: Persistence | Ted Neward
Android | Busy Java Developers Guide to Android: Persistence | Ted NewardAndroid | Busy Java Developers Guide to Android: Persistence | Ted Neward
Android | Busy Java Developers Guide to Android: Persistence | Ted Neward
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
classes & objects.ppt
classes & objects.pptclasses & objects.ppt
classes & objects.ppt
 
Lecture01 object oriented-programming
Lecture01 object oriented-programmingLecture01 object oriented-programming
Lecture01 object oriented-programming
 
Oop lec 4(oop design, style, characteristics)
Oop lec 4(oop design, style, characteristics)Oop lec 4(oop design, style, characteristics)
Oop lec 4(oop design, style, characteristics)
 
C++ programming introduction
C++ programming introductionC++ programming introduction
C++ programming introduction
 
Opp concept in c++
Opp concept in c++Opp concept in c++
Opp concept in c++
 
The good, the bad and the SOLID
The good, the bad and the SOLIDThe good, the bad and the SOLID
The good, the bad and the SOLID
 
Questions On The Code And Core Module
Questions On The Code And Core ModuleQuestions On The Code And Core Module
Questions On The Code And Core Module
 

More from Kulari Lokuge

Engaging large cohorts of international students, technology enhanced learning
Engaging large cohorts of international students, technology enhanced learningEngaging large cohorts of international students, technology enhanced learning
Engaging large cohorts of international students, technology enhanced learningKulari Lokuge
 
Ascilite presentation final 19 nov
Ascilite presentation final 19 novAscilite presentation final 19 nov
Ascilite presentation final 19 novKulari Lokuge
 
7th wave conference presentation e portfolio kulari
7th wave conference presentation e portfolio kulari7th wave conference presentation e portfolio kulari
7th wave conference presentation e portfolio kulariKulari Lokuge
 
7th wave conference presentation bb analytics
7th wave conference presentation bb analytics7th wave conference presentation bb analytics
7th wave conference presentation bb analyticsKulari Lokuge
 
7th wave conference presentation mooc kulari
7th wave conference presentation  mooc kulari7th wave conference presentation  mooc kulari
7th wave conference presentation mooc kulariKulari Lokuge
 
Mooc pp 4 k lppt_22nov
Mooc pp 4 k lppt_22novMooc pp 4 k lppt_22nov
Mooc pp 4 k lppt_22novKulari Lokuge
 
Moo cs for Professional Development
Moo cs for Professional DevelopmentMoo cs for Professional Development
Moo cs for Professional DevelopmentKulari Lokuge
 
Mobile Learning Conference:WebTool for Teaching and Learning
Mobile Learning Conference:WebTool for Teaching and LearningMobile Learning Conference:WebTool for Teaching and Learning
Mobile Learning Conference:WebTool for Teaching and LearningKulari Lokuge
 
Gazing into the future of Sri Lankan Higher Education
Gazing into the future of Sri Lankan Higher Education Gazing into the future of Sri Lankan Higher Education
Gazing into the future of Sri Lankan Higher Education Kulari Lokuge
 
Ass1 new currency for professional credentials
Ass1 new currency for professional credentialsAss1 new currency for professional credentials
Ass1 new currency for professional credentialsKulari Lokuge
 
Engaging Academics:Online Professional Development
Engaging Academics:Online  Professional DevelopmentEngaging Academics:Online  Professional Development
Engaging Academics:Online Professional DevelopmentKulari Lokuge
 
Embracing e learning
Embracing e learningEmbracing e learning
Embracing e learningKulari Lokuge
 
241 kulari lokugetcc2009
241 kulari lokugetcc2009241 kulari lokugetcc2009
241 kulari lokugetcc2009Kulari Lokuge
 
Use of baldrige education excellence model to evaluate 2012
Use of baldrige education excellence model to evaluate 2012Use of baldrige education excellence model to evaluate 2012
Use of baldrige education excellence model to evaluate 2012Kulari Lokuge
 

More from Kulari Lokuge (14)

Engaging large cohorts of international students, technology enhanced learning
Engaging large cohorts of international students, technology enhanced learningEngaging large cohorts of international students, technology enhanced learning
Engaging large cohorts of international students, technology enhanced learning
 
Ascilite presentation final 19 nov
Ascilite presentation final 19 novAscilite presentation final 19 nov
Ascilite presentation final 19 nov
 
7th wave conference presentation e portfolio kulari
7th wave conference presentation e portfolio kulari7th wave conference presentation e portfolio kulari
7th wave conference presentation e portfolio kulari
 
7th wave conference presentation bb analytics
7th wave conference presentation bb analytics7th wave conference presentation bb analytics
7th wave conference presentation bb analytics
 
7th wave conference presentation mooc kulari
7th wave conference presentation  mooc kulari7th wave conference presentation  mooc kulari
7th wave conference presentation mooc kulari
 
Mooc pp 4 k lppt_22nov
Mooc pp 4 k lppt_22novMooc pp 4 k lppt_22nov
Mooc pp 4 k lppt_22nov
 
Moo cs for Professional Development
Moo cs for Professional DevelopmentMoo cs for Professional Development
Moo cs for Professional Development
 
Mobile Learning Conference:WebTool for Teaching and Learning
Mobile Learning Conference:WebTool for Teaching and LearningMobile Learning Conference:WebTool for Teaching and Learning
Mobile Learning Conference:WebTool for Teaching and Learning
 
Gazing into the future of Sri Lankan Higher Education
Gazing into the future of Sri Lankan Higher Education Gazing into the future of Sri Lankan Higher Education
Gazing into the future of Sri Lankan Higher Education
 
Ass1 new currency for professional credentials
Ass1 new currency for professional credentialsAss1 new currency for professional credentials
Ass1 new currency for professional credentials
 
Engaging Academics:Online Professional Development
Engaging Academics:Online  Professional DevelopmentEngaging Academics:Online  Professional Development
Engaging Academics:Online Professional Development
 
Embracing e learning
Embracing e learningEmbracing e learning
Embracing e learning
 
241 kulari lokugetcc2009
241 kulari lokugetcc2009241 kulari lokugetcc2009
241 kulari lokugetcc2009
 
Use of baldrige education excellence model to evaluate 2012
Use of baldrige education excellence model to evaluate 2012Use of baldrige education excellence model to evaluate 2012
Use of baldrige education excellence model to evaluate 2012
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

Introduction to Object Oriented Programming

  • 1.
  • 2. I am a person I have a name which is Kulari I have a surname Lokuge I have a Birthday I have a height I work at a University in Melbourne I drive to work about 15 km I write research papers I supervise projects I play the piano I walk with my dog everyday
  • 3. Name: Mike, Chalin, Mike, Salime, Irine, Isesak Water Victoria, Jakson, William, Mosses, John, Salina, Mosses, Nasa, Mervin, Gitida, Habats, Rita, John, Sarah, Jim, Joseph, Roset, Hamet, Rasberis, Geroge University year: Age: Height: What are you good at? Playing sports? Cooking? Reading? Writing?
  • 4. Name: Name: Age: Age: Height: Height: Activities: Activities: Talk Talk Read Read Write Write Walk Walk
  • 5.
  • 6. Person Kulari Name: Age: Sam Height: Peter Activities: Talk Read Write Walk
  • 7. // smallobj.cpp // demonstrates a small, simple object #include <iostream> using namespace std; //////////////////////////////////////////////////// class smallobj               //declare a class    {   ? ?   private:       int somedata;          //class data public:      void setdata(int d)    //member function to set data          { somedata = d; } void showdata()        //member function to display data           { cout << "Data is " << somedata << endl; }   }; //////////////////////////////////////////////////////////////// int main()    {    smallobj s1, s2;   //define two objects of class smallobj     s1.setdata(1066);  //call member function to set data    s2.setdata(1776);    s1.showdata();     //call member function to display data   
  • 8. Private – generally data is hidden within the class so that it will be safe from accidental manipulations Public - generally functions are public so that they can be accessed from outside the class Is this a Rule? No The data can be public and some functions can be private
  • 9. Person Lecturer Student Admin Senior Junior Final First
  • 10. Object-oriented languages like C++ enable you to create your own data types.  Why is it important?  New user defined data types make programs › easier to visualize and implement from designs. › reusable. › easy to modify and enhance new data types as programs evolve and specifications change. › New data types let you create objects with simple declarations.
  • 11. An object is an instantiation of a data type.  Examples. › Person p; › Window w; › Window object Database ood;
  • 12. Do you know what this is?  Yes  No
  • 13. 3 +5  45.1 + .5  What about this? +  +  + +
  • 14.  Contact klokuge@gmail.com  LinkedIn: klokuge  Website: http://kulari.weebly.com

Editor's Notes

  1. http://www.cs.bu.edu/teaching/cpp/polymorphism/intro/ Navigating C++ and Object-Oriented Design The Waite Group&apos;s Object-Oriented Programming in C++ by  Robert Lafore