Latest News

 










Method - Functions

Previous slide Next slide Back to first slide View graphic version


Method - Functions


 
My other sites

Latest News

 










Method - Functions

  • Similar syntax to c++

    • <modifiers> <return_type> <name> ( <args> ) <block>
      • modifiers : public, private, protected, static, final
      • return_type : any type and void for nothing
      • name : Identifier - Method’s name
      • args : Argument list
  • Examples :

    • public int getSize();
    • private byte[] getBuffer();
    • public void printNumbers( int[] theArray )

Previous slide Next slide Back to first slide View graphic version