It gives me immense pleasure to present this First Edition of “OOPs with C++ Programming” to the teachers and students of Bachelor of Computer Science, Second Year, Fourth Semester. This book has been written as per the syllabus prescribed by the University with effect from academic year 2017-18.
The first C with Classes compiler was called Cfront, which was derived from a C compiler called CPre. It was a program designed to translate C with Classes code to ordinary. In 1983, the name of the language was changed from C with Classes to C++. The ++ operator in the C language is an operator for incrementing a variable, which gives some insight into how Structure regarded the language. (At my institution, C++ is the first language introduced, immediately followed by C.)
The chapters in this book mainly focuses on new features added around this time, the most notable of which are OOPs concepts, constructor, destructor, virtual functions, function and operator overloading, file handling, templates, references with the & symbol, the const keyword, and single- line comments using two forward slashes.The concept and theory of each topic is followed by the theoretical explanation and some self-assessment questions. All practical solutions of C++ are provided.
Contents –
1. Introduction to OOPs and C++ with Variable and Operators
2. Control Structures and Loops
3. Functions in C++
4. Classes and Objects
5. Arrays, Pointers and References
6. Constructors and Destructors
7. Manipulators
8. Function and Operator Overloading
9. Inheritance
10. Virtual Functions and Polymorphism
11. File Handling
12. Templates
13. Exception Handling
14. Standard Template Library
Practical List
Model Question Paper