Lecture overview -- Keyboard shortcut: 'u'  Previous page: From C# classes to C++ classes -- Keyboard shortcut: 'p'  Next page: Classes, structs and namespaces -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 3 - Page 2 : 36
Notes about C++
Abstraction Mechanisms, Part 1
Organization of classes and members

Members do not need to be textually embedded in C++ classes and structs

Class design is emphasized by separating class definition from member definition

The programmer writes source code that reflects the class design

class Point {
private: 
  double x, y;

public:
  Point(double, double);
  Point();
  double getx () const;
  double gety () const;
  void move(double, double);
  double distance_to(Point) const;
};

The class design of class Point.

In similar object-oriented languages the class desing is extracted by documentation tools from the full class definition