C++ Basics
It is a programming language that uses object oriented technology, and the most near to the real world. Well, the real world means it helps us to relate the things or objects as real world objects because real objects have attributes and behavior, just like the objects in C++. It doesn't follow any path whereas in procedural programming you have to.Consider Phone for example. It's attributes will be sleek design, waterproof(to some extinct), 8 Mp Camera and it's behavior will be making calls, sending messages, using Internet etc. So, now you know the difference between attributes and behaviors.
It has many other features like:
1. It has Abstraction, Encapsulation, Inheritance, Modularity and Polymorphism.
2. It also supports function overloading.
3. It has strict type checking.
4.Inline functions instead of Macros(Inline functions are more safe).
5. Variables can be declared anywhere in the program(But first you have to define them).
6. Data Hiding which prevents accidental change in data.
KNOW MORE ABOUT THE USE OF C++:
No comments:
Post a Comment