SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
 Only   one public method??


 What   really means one thing??
public class Cooker {
  private String name;
  private String faceId;

    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return this.name;
    }
    public void setFaceId(String faceId) {
        this.faceId = faceId;
    }
    public String getFaceId() {
        return this.faceId;
    }
    public String toString() {
        ....
    }
}
public class Cooker {
  private String name;
  private String faceId;

    public void setName(String name) {
         this.name = name;
    }
    public String getName() {
         return this.name;
    }
    public void setFaceId(String faceId) {
         this.faceId = faceId;
    }
    public String getFaceId() {
         return this.faceId;
    }
    public String toString() {
         ....
    }
    public String toXml() {
         ....
    }

}
One public method or more
One public method or more
One public method or more
One public method or more
One public method or more

Contenu connexe

Tendances

Mult div rational exp
Mult div rational expMult div rational exp
Mult div rational expJonna Ramsey
 
คณิตศาสตร์ เพิ่มเติม 9
คณิตศาสตร์ เพิ่มเติม 9คณิตศาสตร์ เพิ่มเติม 9
คณิตศาสตร์ เพิ่มเติม 9saman1
 
The Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonThe Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonPaul Hawks
 
Distributive property ppt
Distributive property pptDistributive property ppt
Distributive property pptnglaze10
 
The Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonThe Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonPaul Hawks
 
Reconstructing Textual Documents from n-grams
Reconstructing Textual Documents from n-gramsReconstructing Textual Documents from n-grams
Reconstructing Textual Documents from n-gramsmatthigalle
 
The Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonThe Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonPaul Hawks
 
Comp decomp worked
Comp decomp workedComp decomp worked
Comp decomp workedJonna Ramsey
 
bubble sorting of an array in 8086 assembly language
bubble sorting of an array in 8086 assembly languagebubble sorting of an array in 8086 assembly language
bubble sorting of an array in 8086 assembly languageBilal Amjad
 
Piecewise part 1 worked 3rd
Piecewise part 1 worked 3rdPiecewise part 1 worked 3rd
Piecewise part 1 worked 3rdJonna Ramsey
 
Derivatives vinnie
Derivatives vinnieDerivatives vinnie
Derivatives vinniecanalculus
 

Tendances (20)

PPT SPLTV
PPT SPLTVPPT SPLTV
PPT SPLTV
 
Mult div rational exp
Mult div rational expMult div rational exp
Mult div rational exp
 
Lesson 11: The Chain Rule
Lesson 11: The Chain RuleLesson 11: The Chain Rule
Lesson 11: The Chain Rule
 
Biseccion
BiseccionBiseccion
Biseccion
 
คณิตศาสตร์ เพิ่มเติม 9
คณิตศาสตร์ เพิ่มเติม 9คณิตศาสตร์ เพิ่มเติม 9
คณิตศาสตร์ เพิ่มเติม 9
 
The Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonThe Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint Lesson
 
Multiplying monomial
Multiplying monomialMultiplying monomial
Multiplying monomial
 
Polynomials
PolynomialsPolynomials
Polynomials
 
Chain Rule
Chain RuleChain Rule
Chain Rule
 
Domain alg worked
Domain alg workedDomain alg worked
Domain alg worked
 
Distributive property ppt
Distributive property pptDistributive property ppt
Distributive property ppt
 
The Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonThe Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint Lesson
 
Reconstructing Textual Documents from n-grams
Reconstructing Textual Documents from n-gramsReconstructing Textual Documents from n-grams
Reconstructing Textual Documents from n-grams
 
The Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint LessonThe Chain Rule Powerpoint Lesson
The Chain Rule Powerpoint Lesson
 
Comp decomp worked
Comp decomp workedComp decomp worked
Comp decomp worked
 
maths basics
maths basicsmaths basics
maths basics
 
Evaluating a function
Evaluating a functionEvaluating a function
Evaluating a function
 
bubble sorting of an array in 8086 assembly language
bubble sorting of an array in 8086 assembly languagebubble sorting of an array in 8086 assembly language
bubble sorting of an array in 8086 assembly language
 
Piecewise part 1 worked 3rd
Piecewise part 1 worked 3rdPiecewise part 1 worked 3rd
Piecewise part 1 worked 3rd
 
Derivatives vinnie
Derivatives vinnieDerivatives vinnie
Derivatives vinnie
 

En vedette

SUNSHINE BOOK_fnl-smal
SUNSHINE BOOK_fnl-smalSUNSHINE BOOK_fnl-smal
SUNSHINE BOOK_fnl-smalBolton Colburn
 
Presentacion
PresentacionPresentacion
Presentacionkamilo_o
 
Conferencia genexus mexico_2014_on_line ferrovalle distancia cero con gx
Conferencia genexus mexico_2014_on_line ferrovalle distancia cero con gxConferencia genexus mexico_2014_on_line ferrovalle distancia cero con gx
Conferencia genexus mexico_2014_on_line ferrovalle distancia cero con gxGeneXus
 
The energy problem and why people should care
The energy problem and why people should careThe energy problem and why people should care
The energy problem and why people should careJoseph Spear
 
Palestra Como Aumentar suas Vendas Através do Marketing
Palestra Como Aumentar suas Vendas Através do MarketingPalestra Como Aumentar suas Vendas Através do Marketing
Palestra Como Aumentar suas Vendas Através do MarketingConfirp Contabilidade
 
A Few Tips for Using Learnist
A Few Tips for Using LearnistA Few Tips for Using Learnist
A Few Tips for Using LearnistJim Olsen
 
Learning Through Play: Position Paper
Learning Through Play: Position PaperLearning Through Play: Position Paper
Learning Through Play: Position PaperChristina Sookdeo
 
Piezas mecanicas delacruz.pptxdelacruz
Piezas mecanicas delacruz.pptxdelacruzPiezas mecanicas delacruz.pptxdelacruz
Piezas mecanicas delacruz.pptxdelacruzManuel De La Cruz
 
Trabajo importante uniminuto
Trabajo importante uniminutoTrabajo importante uniminuto
Trabajo importante uniminutoCLAUSTRISTA2013
 
How to Interview Sales Candidates Without Getting Sold
How to Interview Sales Candidates Without Getting SoldHow to Interview Sales Candidates Without Getting Sold
How to Interview Sales Candidates Without Getting SoldVFTNetworks
 
Extrahección: violación de derechos en la apropiación de la naturaleza
Extrahección: violación de derechos en la apropiación de la naturalezaExtrahección: violación de derechos en la apropiación de la naturaleza
Extrahección: violación de derechos en la apropiación de la naturalezaCrónicas del despojo
 
Membuat presentasi
Membuat presentasiMembuat presentasi
Membuat presentasianamaratul
 

En vedette (20)

SUNSHINE BOOK_fnl-smal
SUNSHINE BOOK_fnl-smalSUNSHINE BOOK_fnl-smal
SUNSHINE BOOK_fnl-smal
 
Presentacion
PresentacionPresentacion
Presentacion
 
Conferencia genexus mexico_2014_on_line ferrovalle distancia cero con gx
Conferencia genexus mexico_2014_on_line ferrovalle distancia cero con gxConferencia genexus mexico_2014_on_line ferrovalle distancia cero con gx
Conferencia genexus mexico_2014_on_line ferrovalle distancia cero con gx
 
The energy problem and why people should care
The energy problem and why people should careThe energy problem and why people should care
The energy problem and why people should care
 
Palestra Como Aumentar suas Vendas Através do Marketing
Palestra Como Aumentar suas Vendas Através do MarketingPalestra Como Aumentar suas Vendas Através do Marketing
Palestra Como Aumentar suas Vendas Através do Marketing
 
A Few Tips for Using Learnist
A Few Tips for Using LearnistA Few Tips for Using Learnist
A Few Tips for Using Learnist
 
Learning Through Play: Position Paper
Learning Through Play: Position PaperLearning Through Play: Position Paper
Learning Through Play: Position Paper
 
Language hunt
Language huntLanguage hunt
Language hunt
 
Netiqueta
NetiquetaNetiqueta
Netiqueta
 
Piezas mecanicas delacruz.pptxdelacruz
Piezas mecanicas delacruz.pptxdelacruzPiezas mecanicas delacruz.pptxdelacruz
Piezas mecanicas delacruz.pptxdelacruz
 
Teenage Mutant Ninja Turtles
Teenage Mutant Ninja Turtles Teenage Mutant Ninja Turtles
Teenage Mutant Ninja Turtles
 
Trabajo importante uniminuto
Trabajo importante uniminutoTrabajo importante uniminuto
Trabajo importante uniminuto
 
How to Interview Sales Candidates Without Getting Sold
How to Interview Sales Candidates Without Getting SoldHow to Interview Sales Candidates Without Getting Sold
How to Interview Sales Candidates Without Getting Sold
 
Fecha 210213
Fecha 210213Fecha 210213
Fecha 210213
 
Bab3
Bab3Bab3
Bab3
 
O Bras
O BrasO Bras
O Bras
 
Injusticia
InjusticiaInjusticia
Injusticia
 
Piezas mecanicas
Piezas mecanicasPiezas mecanicas
Piezas mecanicas
 
Extrahección: violación de derechos en la apropiación de la naturaleza
Extrahección: violación de derechos en la apropiación de la naturalezaExtrahección: violación de derechos en la apropiación de la naturaleza
Extrahección: violación de derechos en la apropiación de la naturaleza
 
Membuat presentasi
Membuat presentasiMembuat presentasi
Membuat presentasi
 

Similaire à One public method or more

多治見IT勉強会 Groovy Grails
多治見IT勉強会 Groovy Grails多治見IT勉強会 Groovy Grails
多治見IT勉強会 Groovy GrailsTsuyoshi Yamamoto
 
Groovy ネタ NGK 忘年会2009 ライトニングトーク
Groovy ネタ NGK 忘年会2009 ライトニングトークGroovy ネタ NGK 忘年会2009 ライトニングトーク
Groovy ネタ NGK 忘年会2009 ライトニングトークTsuyoshi Yamamoto
 
Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...
Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...
Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo....NET Conf UY
 
public class Person { private String name; private int age;.pdf
public class Person { private String name; private int age;.pdfpublic class Person { private String name; private int age;.pdf
public class Person { private String name; private int age;.pdfarjuncp10
 
Refactoring - Mejorando el diseño del código existente
Refactoring - Mejorando el diseño del código existenteRefactoring - Mejorando el diseño del código existente
Refactoring - Mejorando el diseño del código existenteMariano Sánchez
 
BasicPizza.javapublic class BasicPizza { String type; String c.pdf
BasicPizza.javapublic class BasicPizza { String type; String c.pdfBasicPizza.javapublic class BasicPizza { String type; String c.pdf
BasicPizza.javapublic class BasicPizza { String type; String c.pdfrdtraders2007
 
Hey Kotlin, How it works?
Hey Kotlin, How it works?Hey Kotlin, How it works?
Hey Kotlin, How it works?Chang W. Doh
 
Creating a Facebook Clone - Part XX.pdf
Creating a Facebook Clone - Part XX.pdfCreating a Facebook Clone - Part XX.pdf
Creating a Facebook Clone - Part XX.pdfShaiAlmog1
 
Kotlin, 어떻게 동작하나요
Kotlin, 어떻게 동작하나요Kotlin, 어떻게 동작하나요
Kotlin, 어떻게 동작하나요Chang W. Doh
 
Pitfalls In Aspect Mining
Pitfalls In Aspect MiningPitfalls In Aspect Mining
Pitfalls In Aspect Miningkim.mens
 
CodeCamp Iasi 10 march 2012 - Practical Groovy
CodeCamp Iasi 10 march 2012 - Practical GroovyCodeCamp Iasi 10 march 2012 - Practical Groovy
CodeCamp Iasi 10 march 2012 - Practical GroovyCodecamp Romania
 
please help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdfplease help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdfarishmarketing21
 
Team public class Team {    private String teamId;    priva.pdf
Team public class Team {    private String teamId;    priva.pdfTeam public class Team {    private String teamId;    priva.pdf
Team public class Team {    private String teamId;    priva.pdfDEEPAKSONI562
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...MaruMengesha
 
can do this in java please thanks in advance The code that y.pdf
can do this in java please thanks in advance The code that y.pdfcan do this in java please thanks in advance The code that y.pdf
can do this in java please thanks in advance The code that y.pdfakshpatil4
 
Derping With Kotlin
Derping With KotlinDerping With Kotlin
Derping With KotlinRoss Tuck
 

Similaire à One public method or more (20)

多治見IT勉強会 Groovy Grails
多治見IT勉強会 Groovy Grails多治見IT勉強会 Groovy Grails
多治見IT勉強会 Groovy Grails
 
はじめてのGroovy
はじめてのGroovyはじめてのGroovy
はじめてのGroovy
 
Groovy ネタ NGK 忘年会2009 ライトニングトーク
Groovy ネタ NGK 忘年会2009 ライトニングトークGroovy ネタ NGK 忘年会2009 ライトニングトーク
Groovy ネタ NGK 忘年会2009 ライトニングトーク
 
Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...
Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...
Code Smells y Refactoring o haciendo que nuestro codigo huela (y se vea) mejo...
 
public class Person { private String name; private int age;.pdf
public class Person { private String name; private int age;.pdfpublic class Person { private String name; private int age;.pdf
public class Person { private String name; private int age;.pdf
 
Refactoring - Mejorando el diseño del código existente
Refactoring - Mejorando el diseño del código existenteRefactoring - Mejorando el diseño del código existente
Refactoring - Mejorando el diseño del código existente
 
BasicPizza.javapublic class BasicPizza { String type; String c.pdf
BasicPizza.javapublic class BasicPizza { String type; String c.pdfBasicPizza.javapublic class BasicPizza { String type; String c.pdf
BasicPizza.javapublic class BasicPizza { String type; String c.pdf
 
The Groovy Way
The Groovy WayThe Groovy Way
The Groovy Way
 
Presentatie - Introductie in Groovy
Presentatie - Introductie in GroovyPresentatie - Introductie in Groovy
Presentatie - Introductie in Groovy
 
Hey Kotlin, How it works?
Hey Kotlin, How it works?Hey Kotlin, How it works?
Hey Kotlin, How it works?
 
Creating a Facebook Clone - Part XX.pdf
Creating a Facebook Clone - Part XX.pdfCreating a Facebook Clone - Part XX.pdf
Creating a Facebook Clone - Part XX.pdf
 
Kotlin, 어떻게 동작하나요
Kotlin, 어떻게 동작하나요Kotlin, 어떻게 동작하나요
Kotlin, 어떻게 동작하나요
 
Pitfalls In Aspect Mining
Pitfalls In Aspect MiningPitfalls In Aspect Mining
Pitfalls In Aspect Mining
 
Pure kotlin
Pure kotlinPure kotlin
Pure kotlin
 
CodeCamp Iasi 10 march 2012 - Practical Groovy
CodeCamp Iasi 10 march 2012 - Practical GroovyCodeCamp Iasi 10 march 2012 - Practical Groovy
CodeCamp Iasi 10 march 2012 - Practical Groovy
 
please help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdfplease help with java questionsJAVA CODEplease check my code and.pdf
please help with java questionsJAVA CODEplease check my code and.pdf
 
Team public class Team {    private String teamId;    priva.pdf
Team public class Team {    private String teamId;    priva.pdfTeam public class Team {    private String teamId;    priva.pdf
Team public class Team {    private String teamId;    priva.pdf
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_15-Mar-2021_L15...
 
can do this in java please thanks in advance The code that y.pdf
can do this in java please thanks in advance The code that y.pdfcan do this in java please thanks in advance The code that y.pdf
can do this in java please thanks in advance The code that y.pdf
 
Derping With Kotlin
Derping With KotlinDerping With Kotlin
Derping With Kotlin
 

Plus de Jackson dos Santos Olveira (20)

AWS Control Tower
AWS Control TowerAWS Control Tower
AWS Control Tower
 
Netty training
Netty trainingNetty training
Netty training
 
An introduction to predictionIO
An introduction to predictionIOAn introduction to predictionIO
An introduction to predictionIO
 
Introduction to HashiCorp Consul
Introduction to HashiCorp ConsulIntroduction to HashiCorp Consul
Introduction to HashiCorp Consul
 
Apache mahout - introduction
Apache mahout - introductionApache mahout - introduction
Apache mahout - introduction
 
Managing computational resources with Apache Mesos
Managing computational resources with Apache MesosManaging computational resources with Apache Mesos
Managing computational resources with Apache Mesos
 
Introduction to CFEngine
Introduction to CFEngineIntroduction to CFEngine
Introduction to CFEngine
 
DBC Principles
DBC PrinciplesDBC Principles
DBC Principles
 
Racket
RacketRacket
Racket
 
Jboss Teiid - The data you have on the place you need
Jboss Teiid - The data you have on the place you needJboss Teiid - The data you have on the place you need
Jboss Teiid - The data you have on the place you need
 
Apache PIG introduction
Apache PIG introductionApache PIG introduction
Apache PIG introduction
 
Jboss AS7 New Main Features
Jboss AS7 New Main FeaturesJboss AS7 New Main Features
Jboss AS7 New Main Features
 
Celery Introduction
Celery IntroductionCelery Introduction
Celery Introduction
 
Aurinko
AurinkoAurinko
Aurinko
 
Gcontract
GcontractGcontract
Gcontract
 
Ocaml
OcamlOcaml
Ocaml
 
Ocaml
OcamlOcaml
Ocaml
 
Haskell
HaskellHaskell
Haskell
 
Elastic search introduction
Elastic search introductionElastic search introduction
Elastic search introduction
 
Presentation about ClosureScript fraemework
Presentation about ClosureScript fraemeworkPresentation about ClosureScript fraemework
Presentation about ClosureScript fraemework
 

One public method or more

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.  Only one public method??  What really means one thing??
  • 19.
  • 20. public class Cooker { private String name; private String faceId; public void setName(String name) { this.name = name; } public String getName() { return this.name; } public void setFaceId(String faceId) { this.faceId = faceId; } public String getFaceId() { return this.faceId; } public String toString() { .... } }
  • 21. public class Cooker { private String name; private String faceId; public void setName(String name) { this.name = name; } public String getName() { return this.name; } public void setFaceId(String faceId) { this.faceId = faceId; } public String getFaceId() { return this.faceId; } public String toString() { .... } public String toXml() { .... } }