, (Python? , , :))), .
, , , , :
namespace Example
class Foo : public Bar
public: std::string myMethod()
return "Oh noes!";
? , ?
.
, . , , ,
namespace Example class Foo : public Bar public: std::string myMethod() return "Oh noes!";
, . ,
namespace Example { class Foo : public Bar { public: std::string myMethod() {return "Oh noes!";}}}
, , .
( ? , ), : . - . , ", ". , . , , , .. , , C- , .
,
namespace Example class Foo : public Bar public : std::string myMethod() return "Oh noes!";
^ ^ ^^
. , , , , ":". - , , , . , , "::", ":".
, :
namespace Example class Foo : public Bar public : std::string myMethod() return "Oh noes!";
^^^^^^ ^^^^^^
, . , , ":", !
, , 2 : public ':'. , . , . , , - . Nth , "" , "public" :
namespace Example class Foo : public ::Bar public : std::string myMethod() return "Oh noes!";
^^^^^^^^ ^^^^^^^^
, Bar ::Bar. , "public " . , " ", , , - "public" ":" .
: , . "" , , . , oh-so-long .
, , . , - , , .
++, , ';' .h? }? 30 300 . , ';' '{}' , 30 300 , - ! , .
: , , -/ , :
, .
++ , . Java C, , /, , . C, #include . Java , , , , ++..
, , , , , .. ( ) . , LISP. , ( , - VisualBasic " if" yuck)
, , Python, ? / .. intendation. . , , //etc , , . .