loading...

More coding knowledge

suleetate profile image suLeeTate ・1 min read

Lesson 15 Discussion:

  1. Explain the lesson in your own words
  2. Include the following questions: What is the difference between a function and a method? Why are structures a better way to define data than just declaring a series of variables?

A. The lesson for 15 was the Structures lesson. It teaches how to build structures and how structures can be used to create custom types. It explains the difference between methods and functions. Methods are associated with an object and a function is called by a name.
B. It also explains why it is better to use a structure rather than a series of variables. Variables would be too much code which would be too complicated to read. An structures can be reused instead of rewriting the series of variables over and over again.

Discussion

markdown guide