SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Methods
∞
∞
∞
∞
∞
∞

Math

Local
Overloading Method)
Class
public

Method

Class
main Method

Class
Class
Modifier Return_Type Method Name
(parameter_list)
{
return (

Method modifiers
public static
Return_ Type
void
MethodName
return

parameter
Static Method Instance Method Constructor Method Overloading Method Overriding Method -
Method (Call Method)
body
main()

method main()
method
syntax

method
method
method
Math
method

Method
Method

Math class

method
Class (Class Method)”
method
Math Class
argument)
parameter)
parameter_list

PrintCharLine
PrintLine
c
char
len

len

int

c
PrintCharLine
Main
o'

c

PrintCharLine
len
o

PrintCharLine
x
method
method

parameter
return
method
return

Output:
Local
local variable)
Overloading Method)
Method

Method
Method
method

parameter
Method

static double Numb(double a, double b)
static int Numb(int a, int b)
Output:

parameter
Method

Parameter
เมธอด

Weitere ähnliche Inhalte

Was ist angesagt?

Performing calculations using java script
Performing calculations using java scriptPerforming calculations using java script
Performing calculations using java script
Jesus Obenita Jr.
 
Algebraic Data Types and Origami Patterns
Algebraic Data Types and Origami PatternsAlgebraic Data Types and Origami Patterns
Algebraic Data Types and Origami Patterns
Vasil Remeniuk
 

Was ist angesagt? (20)

Map, Reduce and Filter in Swift
Map, Reduce and Filter in SwiftMap, Reduce and Filter in Swift
Map, Reduce and Filter in Swift
 
K fold
K foldK fold
K fold
 
Functional Programming and Haskell - TWBR Away Day 2011
Functional Programming and Haskell - TWBR Away Day 2011Functional Programming and Haskell - TWBR Away Day 2011
Functional Programming and Haskell - TWBR Away Day 2011
 
Templates
TemplatesTemplates
Templates
 
Template C++ OOP
Template C++ OOPTemplate C++ OOP
Template C++ OOP
 
Performing calculations using java script
Performing calculations using java scriptPerforming calculations using java script
Performing calculations using java script
 
Motivation and Mechanics behind some aspects of Shapeless
Motivation and Mechanics behind some aspects of ShapelessMotivation and Mechanics behind some aspects of Shapeless
Motivation and Mechanics behind some aspects of Shapeless
 
2 R Tutorial Programming
2 R Tutorial Programming2 R Tutorial Programming
2 R Tutorial Programming
 
Introduction to haskell
Introduction to haskellIntroduction to haskell
Introduction to haskell
 
Coderstrust Presentation on C Language
Coderstrust Presentation on C LanguageCoderstrust Presentation on C Language
Coderstrust Presentation on C Language
 
Grid search (parameter tuning)
Grid search (parameter tuning)Grid search (parameter tuning)
Grid search (parameter tuning)
 
Templates in c++
Templates in c++Templates in c++
Templates in c++
 
Essence of the iterator pattern
Essence of the iterator patternEssence of the iterator pattern
Essence of the iterator pattern
 
Gdg almaty. Функциональное программирование в Java 8
Gdg almaty. Функциональное программирование в Java 8Gdg almaty. Функциональное программирование в Java 8
Gdg almaty. Функциональное программирование в Java 8
 
Algorithms: II
Algorithms: IIAlgorithms: II
Algorithms: II
 
Linear search
Linear searchLinear search
Linear search
 
Algebraic Data Types and Origami Patterns
Algebraic Data Types and Origami PatternsAlgebraic Data Types and Origami Patterns
Algebraic Data Types and Origami Patterns
 
Part II: 2-Dimensional Array file name: lab1part2.cpp (10 points) Write a C++...
Part II: 2-Dimensional Array file name: lab1part2.cpp (10 points) Write a C++...Part II: 2-Dimensional Array file name: lab1part2.cpp (10 points) Write a C++...
Part II: 2-Dimensional Array file name: lab1part2.cpp (10 points) Write a C++...
 
Arrays in c
Arrays in cArrays in c
Arrays in c
 
Quick sort
Quick sortQuick sort
Quick sort
 

Ähnlich wie เมธอด

เมธอด กลุ่ม3
เมธอด กลุ่ม3เมธอด กลุ่ม3
เมธอด กลุ่ม3
Mook Prapasson
 
Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]
Palak Sanghani
 

Ähnlich wie เมธอด (20)

Visula C# Programming Lecture 6
Visula C# Programming Lecture 6Visula C# Programming Lecture 6
Visula C# Programming Lecture 6
 
เมธอด กลุ่ม3
เมธอด กลุ่ม3เมธอด กลุ่ม3
เมธอด กลุ่ม3
 
Java 8
Java 8Java 8
Java 8
 
40+ examples of user defined methods in java with explanation
40+ examples of user defined methods in java with explanation40+ examples of user defined methods in java with explanation
40+ examples of user defined methods in java with explanation
 
Module 4 : methods & parameters
Module 4 : methods & parametersModule 4 : methods & parameters
Module 4 : methods & parameters
 
Chapter 4 - Classes in Java
Chapter 4 - Classes in JavaChapter 4 - Classes in Java
Chapter 4 - Classes in Java
 
Built-in Classes in JAVA
Built-in Classes in JAVABuilt-in Classes in JAVA
Built-in Classes in JAVA
 
Java8: Language Enhancements
Java8: Language EnhancementsJava8: Language Enhancements
Java8: Language Enhancements
 
Class 10
Class 10Class 10
Class 10
 
Java Foundations: Methods
Java Foundations: MethodsJava Foundations: Methods
Java Foundations: Methods
 
14method in c#
14method in c#14method in c#
14method in c#
 
Built in classes in java
Built in classes in javaBuilt in classes in java
Built in classes in java
 
Java Method, Static Block
Java Method, Static BlockJava Method, Static Block
Java Method, Static Block
 
Unit 5 Foc
Unit 5 FocUnit 5 Foc
Unit 5 Foc
 
Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]Lec 8 03_sept [compatibility mode]
Lec 8 03_sept [compatibility mode]
 
ch03-parameters-objects.ppt
ch03-parameters-objects.pptch03-parameters-objects.ppt
ch03-parameters-objects.ppt
 
Methods in Java
Methods in JavaMethods in Java
Methods in Java
 
09. Methods
09. Methods09. Methods
09. Methods
 
C# p8
C# p8C# p8
C# p8
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 

Mehr von Parkae' Kusuma

งานย่อย1
งานย่อย1งานย่อย1
งานย่อย1
Parkae' Kusuma
 
งานย่อย1
งานย่อย1งานย่อย1
งานย่อย1
Parkae' Kusuma
 
กิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขันกิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขัน
Parkae' Kusuma
 
สรุปคำติชม
สรุปคำติชมสรุปคำติชม
สรุปคำติชม
Parkae' Kusuma
 
กิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขันกิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขัน
Parkae' Kusuma
 
น ก เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_
น  ก  เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_น  ก  เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_
น ก เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_
Parkae' Kusuma
 
ซ น ท โอท_
ซ น   ท โอท_ซ น   ท โอท_
ซ น ท โอท_
Parkae' Kusuma
 
Itวิโรจน์
Itวิโรจน์Itวิโรจน์
Itวิโรจน์
Parkae' Kusuma
 
สตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้ว
สตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้วสตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้ว
สตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้ว
Parkae' Kusuma
 

Mehr von Parkae' Kusuma (20)

Chapter3
Chapter3Chapter3
Chapter3
 
66
6666
66
 
งานย่อย1
งานย่อย1งานย่อย1
งานย่อย1
 
งานย่อย1
งานย่อย1งานย่อย1
งานย่อย1
 
กุสุมา
กุสุมากุสุมา
กุสุมา
 
กิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขันกิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขัน
 
สรุปคำติชม
สรุปคำติชมสรุปคำติชม
สรุปคำติชม
 
กิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขันกิจกรรมร่วมแข่งขัน
กิจกรรมร่วมแข่งขัน
 
น ก เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_
น  ก  เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_น  ก  เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_
น ก เป_ดแอพช_วยผ__ใช_รถเข_นว_ลแชร_
 
ซ น ท โอท_
ซ น   ท โอท_ซ น   ท โอท_
ซ น ท โอท_
 
Itวิโรจน์
Itวิโรจน์Itวิโรจน์
Itวิโรจน์
 
สุวภัทร
สุวภัทรสุวภัทร
สุวภัทร
 
ผาณิตรี
ผาณิตรีผาณิตรี
ผาณิตรี
 
Ti มิ้น
Ti มิ้นTi มิ้น
Ti มิ้น
 
It เก้
It เก้It เก้
It เก้
 
ผาณิตรี
ผาณิตรีผาณิตรี
ผาณิตรี
 
Ti มิ้น
Ti มิ้นTi มิ้น
Ti มิ้น
 
It เก้
It เก้It เก้
It เก้
 
สตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้ว
สตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้วสตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้ว
สตีฟ จ็อบส์อดีตซีอีโอแอ๊ปเปิ้ลเสียชีวิตแล้ว
 
It 2
It 2It 2
It 2
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 

Kürzlich hochgeladen (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

เมธอด