Rules About Arrays

For arrays, CLS rules are simple:

• Items within arrays must be CLS-compliant types.

• Arrays must have fixed length greater than zero.

• Arrays must be zero-based. (This is mostly a rule for compilers.)

Summary

In this chapter you learned several important concepts about object-oriented programming with Visual Basic 2010. You saw how classes are the most important item in the object-oriented programming; you learned how to declare classes and how to expose members from classes, such as methods, properties, and fields. Summarizing these features, you may remember how fields are the real state of objects and how properties are a way for ruling access to fields from the external world. You can also remember how methods are procedures ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.