C++常见英文面试笔试题C/C++ Programming interview questions and answers By Satish Shetty, July 14th, What is encapsulation
Containing and hiding information about an object, such as internal data structures and code
Encapsulation isolates( 使 隔 离 ) the internal complexity of an object's operation from the rest of the application
For example, a client component asking for net revenue ( 收益) from a business object need not know the data's origin
What is inheritance
Inheritance allows one class to reuse the state and behavior of another class
The derived class inherits the properties and method implementations of the base class and extends it by overriding methods and adding additional properties and methods
What is Polymorphism
Polymorphism allows a client to treat different objects in th