EncapsulationWithin an object, code, data or both canbe private to that object or public.Privateaccessible only by another part of the object.Publicaccessible by all others
Encapsulation Within an object, code, data or both can be private to that object or public. Private accessible only by another part of the object. Public accessible by all others
PolymorphismPolymorphism:One name, many purposesTwo forms:Function overloadingOperator overloading
Polymorphism Polymorphism: One name, many purposes Two forms: Function overloading Operator overloading
PolymorphismFunction Overloading:In C, three functions for the absolute valueaction:absO, labs() and fabs()In C++, each function can be called by thesame name, such as abs()
Polymorphism Function Overloading: In C, three functions for the absolute value action: abs(), labs() and fabs() In C++, each function can be called by the same name, such as abs()
PolymorphismOperator OverloadingIn C, the '+' operator is used to add integers,long integers, characters, and floating-pointvalues.In C++, you can extend this concept to otherdata types.e.g. use '+' to add two matrices
Polymorphism Operator Overloading In C, the ‘+’ operator is used to add integers, long integers, characters, and floating-point values. In C++, you can extend this concept to other data types. e.g. use ‘+’ to add two matrices
InheritanceInheritance:the process by which one object can acquirethe properties of another.Base Class:defines all gualities that will be common toany derived classes.Derived Class:inherits properties of base class and addsproperties that are specific to that class
Inheritance Inheritance: the process by which one object can acquire the properties of another. Base Class: defines all qualities that will be common to any derived classes. Derived Class: inherits properties of base class and adds properties that are specific to that class