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
...
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...
เมธอด
Upcoming SlideShare
Loading in...5
×

เมธอด

70

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
70
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

เมธอด

  1. 1. Methods ∞ ∞ ∞ ∞ ∞ ∞ Math Local Overloading Method)
  2. 2. Class public Method Class main Method Class Class
  3. 3. Modifier Return_Type Method Name (parameter_list) { return ( Method modifiers public static Return_ Type void MethodName return parameter
  4. 4. Static Method Instance Method Constructor Method Overloading Method Overriding Method -
  5. 5. Method (Call Method) body main() method main() method syntax method method method
  6. 6. Math method Method Method Math class method Class (Class Method)” method Math Class
  7. 7. argument) parameter) parameter_list PrintCharLine PrintLine c char len len int c
  8. 8. PrintCharLine Main o' c PrintCharLine len o PrintCharLine x
  9. 9. method method parameter return method return Output:
  10. 10. Local local variable)
  11. 11. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×