4. Introduction to Classes, Objects, Methods and strings

Objectives

In this chapter you’ll:

Image Declare a class and use it to create an object.

Image Implement a class’s attributes as instance variables and a class’s behaviors as methods.

Image Call an object’s methods to make them perform their tasks.

Image Understand how local variables differ from instance variables ...

Get C# 6 for Programmers, Sixth Edition 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.