Lecture overview -- Keyboard shortcut: 'u'  Previous page: Classes [Section] -- Keyboard shortcut: 'p'  Next page: Visibility - the Iceberg Analogy -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 6 : 29
Object-oriented Programming in C#
Classes and Objects

Encapsulation and control of visibility count as the most important ideas of object-oriented programming.

A class encapsulates data and operations that belong together, and it controls the visibility of both data and operations. A class can be used as a type in the programming language

A class and its interface to other classes. The interface is often called the client interface. In this illustration the operations Op1, Op2, Op3, and Op4 form the client interface of the class.

The visible parts of a class constitute the interface of the class, as seen by client classes
The interface - or the client interface - make up those parts of the class that can be used from client classes. The non-interface parts of the class are private to the class.

Go to exerciseTime Classes
Read more about classes in the text book version of this material.