OOPortal
RationalDB Database Design
prev next prev next
  Course navigation
 
Lesson 1
OOP and encapsulation in C++
    This module introduces you to the basic concept of encapsulation in C++.
The following will be discussed:
  1. Why encapsulation is central to object-oriented programming
  2. What classes and objects are
  3. How to write member functions as part of an abstract data type
  4. How to limit access to an ADT's member data and functions
  5. How a class differs from a struct
    At the end of the module, you'll be given the opportunity to take a quiz covering these topics.
Classes in C++ provide static encapsulation of objects by generating code which contains specific knowledge about the internals of encapsulated objects. Static encapsulation occurs at compile time and therefore cannot directly support the evolution of objects since recompilation of source code is required if the internal layout changes. This also prohibits the use of distributed or persistent objects without first ensuring that the internal representations of the objects match the ones in the compiled code
  Course navigation