Lecture 4 SE
Lecture 4 SE
Lecture 4 SE
• Syntax:
• The statement:
popularSport = FOOTBALL;
stores FOOTBALL into popularSport
• The statement:
mySport = popularSport;
copies the value of the popularSport into
mySport
• Drawbacks:
− Cannot pass/return an anonymous type to/from
a function
− Values used in one type can be used in
another, but are treated differently: