C++ features by examples
|
some examples in C++ More...
Classes | |
struct | Setter_interface< ValueType > |
struct | Getter_interface< ValueType > |
struct | Change_interface< ValueType > |
class | Synchronised_encapsulated_value< ValueType > |
encapsulating class with only public accessor and mutator intrfaces More... | |
Functions | |
void | oop_demo () |
some examples in C++
Four Pillars of Object-oriented_programming:
object-oriented-programming-in-cpp
Three independent interfaces Setter_interface, Getter_interface and Change_interface demonstrate Interface segregation
void oop_demo | ( | ) |
Lambda expression 'client' demonstrates Dependency inversion - it doesn't depends from implementation Synchronised_encapsulated_value but depends only from interfaces.
Definition at line 115 of file patterns.cpp.