day 17

 today studied  Methods ( Overloading )

it is Make some methods of same name but different in signature 

Static int sum ( int x , int y) 

return x + y; 

Static double sum (double x , double y) 

return x + y; 

}

-I can make overloading with 3 steps : 
1– change the number of parameters عدد  
2– change the type of parameters أنواع  
3– change the order of parameter ترتيب




Comments

Popular posts from this blog

Day 2

day 26