Windows Programming: October 2016
Windows Programming: October 2016
October 2016
Functions
Topics
• Defining and Using Functions
• Return Values
• Parameters
– Parameter Array s
– Reference and Value Parameters
• Struct Functions
• Function Overloading
int y = 9;
y unchanged F(y);
int y = 9;
int y;
struct CustomerName
{
public string firstName, lastName;
public string Name()
{
return firstName + " " + lastName;
}
};
01/01/2021 Windows Programming 21
OVERLOADING FUNCTIONS
• to create multiple functions with same name working with
different parameter types