Code:
operator<<(ostream& output, Bank_Acct & Org)
Code:
{
output<<endl<<"Name "<<Org.name;
output<<endl<<"The balance is "<<Org.balance<<endl;
returnoutput;
}
I'm learning about operator overloading and I'm confused where Org came from
I'm guessing it just a placeholder name like when you create functions like
Code:
void Add(int &a, int &b){
a+=1;
b+=1;
}
and when you call the function
in main
like this
Code:
int main(){
int s=4;
int g=5;
Add(s,b);
}
so the variables don't nessarily have the same name.