Assertion: class | /r/CapableOf | use namespace std
Facets:
Source sentences:
text: // example: one class, two objects #include <iostream> using namespace std; class Rectangle { int width, height
text: // classes and uniform initialization #include <iostream> using namespace std; class Circle { double radius; public : Circle( double r) { radius = r; } double circum() { return 2*radius*3.14159265;} }; int main () { Circle foo (10.0); // functional form Circle bar = 20.0; // assignment init.
text: // classes and default constructors #include <iostream> #include <string> using namespace std; class Example3 { string data; public : Example3 ( const string& str) : data(str) {} Example3() {} const string& content() const { return data;} }; int main () { Example3 foo; Example3 bar ( "Example" ); cout <