C++ Programming: Trainer: Akshita Chanchlani
C++ Programming: Trainer: Akshita Chanchlani
• Games
• GUI Based Application (Adobe)
• Database Software (MySQL Server)
• OS (Apple OS)
• Browser( Mozilla)
• Google Applications(Google File System and Chrome browser)
• Banking Applications
• Compilers
• Embedded Systems(smart watches, MP3 players, GPS systems)
• Abstraction
• getting only essential things and hiding unnecessary details is called as abstraction.
• Abstraction always describe outer behavior of object.
• In console application when we give call to function in to the main function , it represents the abstraction
• Encapsulation
• binding of data and code together is called as encapsulation.
• Implementation of abstraction is called encapsulation.
• Encapsulation always describe inner behavior of object
• Function call is abstraction
• Function definition is encapsulation.
• Information hiding
• Data : unprocessed raw material is called as data.
• Process data is called as information.
• Hiding information from user is called information hiding.
• In c++ we used access Specifier to provide information hiding.
• Modularity
• Dividing programs into small modules for the purpose of simplicity is called modularity.
• Hierarchy (Inheritance [is-a] , Composition Sunbeam Infotech
[has-a] , Aggregation[has-a], Dependancy) www.sunbeaminfo.com
Minor pillars of oops
• Polymorphism (Typing)
• One interface having multiple forms is called as polymorphism.
• Polymorphism have two types
1. Compile time polymorphism
when the call to the function resolved at compile time it is called as compile time polymorphism. And it is achieved
by using function overloading and operator overloading
1. Runtime polymorphism.
when the call to the function resolved at run time it is called as run time polymorphism. And it is
achieved by using function overriding.
• Compile time / Static polymorphism / Static binding / Early binding / Weak typing / False Polymorphism
• Run time / Dynamic polymorphism / Dynamic binding / Late binding / Strong typing / True polymorphism
• Concurrency
• The concurrency problem arises when multiple threads simultaneously access same object.
• You need to take care of object synchronization when concurrency is introduced in the system.
• Persistence
• It is property by which object maintains its state across time and space.
• It talks about concept of serialization and also about transferring object across network.
• The type for character constants is char, the type for wide character is wchar_t.
• This data type occupies 2 or 4 bytes depending on the compiler being used.
• Mostly the wchar_t datatype is used when international languages like Japanese are used.
• This data type occupies 2 or 4 bytes depending on the compiler being used.
• L is the prefix for wide character literals and wide-character string literals which tells the compiler that
that the char or string is of type wide-char.
• w is prefixed in operations like scanning (wcin) or printing (wcout) while operating wide-char type.
Sunbeam Infotech www.sunbeaminfo.com
Main Function