3.10. Summary
In this chapter, you've learned the following:
An object is a software abstraction of a physical or conceptual real-world object.
A class serves as a template for defining objects; specifically, a class defines the following:
What data the object will house, known as an object's fields
What behaviors an object will be able to perform, known as an object's operations (methods)
An object can then be thought of as a filled-in template.
Just as we can declare variables to be of simple predefined types such as int, double, and bool, we can also declare variables to be of user-defined types such as Student and Professor.
When we create a new object (a process known as instantiation), we typically store a reference to that object in a reference ...
Get Beginning C# 2008 Objects: From Concept to Code 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.