public void register(int a)
SIGNATURE:
- returned value
- modifiers (if necessary)
- name of the method
- passed parameters
JAVA
class Customer{
static counter=0; /* TODOS LOS CUSTOMERS TIENEN EL
MISMO COUNTER. SI LO CAMBIO EN UNO, LO CAMBIO EN
TODOS*/
int customerId;
String name;
String email;
String address;
Customer(){ }
Customer(int d){ } //JAVA ALLOWS MULTIPLE
CONSTRUCTORS
Customer (String name){ }
void register(){
}
void login(){
}
}
LINEA DE INSTANTIATION in JAVA
Customer Ian=new Customer(1,”Ian”, “Ian@[Link]”,”Ves a saber on”);
class BankAccount{
String owner;
Dollars balance;
BankAccount(String owner, Dollars balance){ }
void depòsit(Dollars amount){ }
}
PYTHON
def Customer:
counter=0 //SI LO CAMBIO EN UNO LO CAMBIO EN TODOS
def __Customer__(self, int customerId, string name, string email, string address)
[Link]=customerId
[Link]=name
[Link]=email
[Link]=address
Customer(1,“Ian”,”ian@[Link]”,”Ves a saber on”)