




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Course Outline
Motivational Example
Motivational Example
(^) The emphasis is on creating a set of tools which can be used cleanly, with a minimum knowledge about implementation in the user’s driver files. The following concepts are relevant to accomplishing clean interface:
cout << "Enter a real number: " << endl; Here, you don't need to understand how cout displays the text on the user's screen. You need to only know the public interface and the underlying implementation of cout is free to change. //Data Abstraction In C++, all I/O is done by classes. A class is set up to handle input and output streams. Output to the screen is handled by the stream with standard name cout. This is a variable of class ostream. Similarly for cin.
// second C++ program #include
// third C++ program #include
Classes and Objects