Une nouvelle version du portail de gestion des comptes externes sera mise en production lundi 09 août. Elle permettra d'allonger la validité d'un compte externe jusqu'à 3 ans. Pour plus de détails sur cette version consulter : https://doc-si.inria.fr/x/FCeS

Commit 61d261c1 authored by ROUVREAU Vincent's avatar ROUVREAU Vincent Committed by GILLES Sebastien
Browse files

Use braces for default attributes values (as explained in the previous notebook) and typos

parent 224cff8b
......@@ -132,7 +132,7 @@
"\n",
"### Multiple layer of inheritance\n",
"\n",
"A child class may also be the parent of another class (unless `final` is used - see later)\n",
"A child class may also be the parent of another class (unless [`final`](6-inheritance.ipynb#final-keyword) is used - see later)\n",
"\n"
]
},
......@@ -347,9 +347,9 @@
" \n",
" private:\n",
" \n",
" double width_ = -1.e20; // Stupid value that would play havoc if not properly initialized\n",
" double width_ { -1.e20 }; // Stupid value that would play havoc if not properly initialized\n",
" // - std::optional (C++17) would probably a better choice.\n",
" double length_ = -1.e20; \n",
" double length_ { -1.e20 }; \n",
"};"
]
},
......@@ -1847,7 +1847,7 @@
"source": [
"So you could devise a way to identify which is the dynamic type of your `PolymorphicVehicle` pointer and cast it dynamically to the rightful type so that extended API offered by the derived class is accessible.\n",
"\n",
"If you find this clunky, you are not alone: by experience if you really need to resort to **dynamic_cast** it's probably your data architecture needs some revision. But maybe the mileage vary for other developers, and it's useful to know the possibility exist."
"If you find this clunky, you are not alone: by experience if you really need to resort to **dynamic_cast** it's probably your data architecture needs some revision. But maybe the mileage vary for other developers, and it's useful to know the possibility exists."
]
},
{
......@@ -1856,7 +1856,7 @@
"source": [
"## `final` keyword\n",
"\n",
"If you need to specify a class can't be derived, you may stick a `final` keyword in its declaration (from C++11 onward):\n"
"If you need to specify a class that can't be derived, you may stick a `final` keyword in its declaration (from C++11 onward):\n"
]
},
{
......@@ -2100,7 +2100,7 @@
"source": [
"struct DerivedClass4 : public BaseClass4\n",
"{\n",
" DerivedClass4() = default;; \n",
" DerivedClass4() = default; \n",
" \n",
" virtual std::string ClassName() const;\n",
"};"
......@@ -2192,7 +2192,7 @@
"source": [
"struct DerivedClass5 : public BaseClass5\n",
"{\n",
" DerivedClass5() = default;; \n",
" DerivedClass5() = default; \n",
" \n",
" virtual std::string ClassName() const;\n",
"};"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment