BBlloocckk SSttrruuccttuurree 
Arthur David Anderson
WWhhaatt iiss aa BBlloocckk 
A block is the structure that defines the 
container of a method, class, or function. 
In JAVA there blocks are defined by a 
signature and the brackets that surround the 
language.
EExxaammppllee 
Class calls: are used to bring external class 
parameters to the program that you are writing. 
#import <Foundation/Foundation.h> 
#import "NSData+base64.h"
EExxaammppllee ccoonntt.. 
Class Declaration: Classes are declared with 
a simple structure. 
The first part is the class signature 
class MyClass { 
// variable declaration 
// method signature 
}
EExxaammppllee ccoonntt.. 
The second part of the class is the Curly 
braces that surround the class itself. 
These define the code that the class uses. 
class MyClass { 
// variable declaration 
// method signature 
}
CCoonncclluussiioonn 
There are many things that you can learn 
about JAVA but the first thing that you need to 
know is how to define and import Classes 
You can not have a class without the use of a 
class declaration or the curly braces that 
define the boundary's of the class. 
Everything that that is contained inside the 
braces are usable by the methods withing the 
class
CCoonncclluussiioonn 
There are many things that you can learn 
about JAVA but the first thing that you need to 
know is how to define and import Classes 
You can not have a class without the use of a 
class declaration or the curly braces that 
define the boundary's of the class. 
Everything that that is contained inside the 
braces are usable by the methods withing the 
class

Java block structure

  • 1.
  • 2.
    WWhhaatt iiss aaBBlloocckk A block is the structure that defines the container of a method, class, or function. In JAVA there blocks are defined by a signature and the brackets that surround the language.
  • 3.
    EExxaammppllee Class calls:are used to bring external class parameters to the program that you are writing. #import <Foundation/Foundation.h> #import "NSData+base64.h"
  • 4.
    EExxaammppllee ccoonntt.. ClassDeclaration: Classes are declared with a simple structure. The first part is the class signature class MyClass { // variable declaration // method signature }
  • 5.
    EExxaammppllee ccoonntt.. Thesecond part of the class is the Curly braces that surround the class itself. These define the code that the class uses. class MyClass { // variable declaration // method signature }
  • 6.
    CCoonncclluussiioonn There aremany things that you can learn about JAVA but the first thing that you need to know is how to define and import Classes You can not have a class without the use of a class declaration or the curly braces that define the boundary's of the class. Everything that that is contained inside the braces are usable by the methods withing the class
  • 7.
    CCoonncclluussiioonn There aremany things that you can learn about JAVA but the first thing that you need to know is how to define and import Classes You can not have a class without the use of a class declaration or the curly braces that define the boundary's of the class. Everything that that is contained inside the braces are usable by the methods withing the class