Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Hari Mohan Pandey

Rating No ratings yet

The book «Object Oriented Programming C++ Simplified» has been written for the students who are little experienced in the field of programming. It is an introductory level text that instills an understanding of the basic concepts before gradually moving to advanced topics on object oriented programming. Programs given are accompanied by complete explanation, and their output helps the reader to better understand the logic behind them.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A patient, example-driven introduction to C++ and object-oriented programming for readers who know a little code but need the fundamentals made explicit; best for students taking a first OOP course or self-learners who want every program explained line by line. 【Book Arc】 - **Opening (~0%–10%)**: Sets expectations and maps the whole book — the preface walks through chapters on classes, constructors, operator overloading, inheritance, virtual functions, streams, files, templates, and exceptions, so you know the route before starting. - **Early (~10%–30%)**: Builds the C++ substrate — tokens, keywords, identifiers, program styles, operators, type conversion, control flow, scope resolution, dynamic memory with new/delete, pointers, and functions including call by reference and recursion. - **Middle (~30%–50%)**: Moves into the core of OOP — classes and objects, member functions, arrays of objects, friend functions, static and constant members, then constructors (default, parameterized, copy, dynamic) and destructors. - **Late (~50%–75%)**: Extends object behavior — operator overloading (binary, unary, assignment, friend-based), type conversion, inheritance in its several forms with visibility rules, containership, and pointers to objects with this, virtual functions, and object slicing. - **Ending (~75%–100%)**: Applies the language — stream classes and manipulators, file handling with modes and random access, templates, exception handling, plus a lab-experiment chapter and appendices on language details and interview questions. 【Key Takeaways】 - **The book teaches by complete worked programs** (Early): nearly every concept arrives with source, expected output, and a line-by-line explanation, which suits readers who learn by tracing execution rather than reading theory. - **C++ fundamentals are treated as prerequisites, not footnotes** (Early): tokens, operators, loops, and the modulus/float distinction are covered before any class appears, so weak spots in basic syntax get repaired first. - **Classes are introduced through ordinary data modeling** (Middle): student, person, and array-wrapping examples show encapsulation as a practical habit — private data, public member functions — rather than an abstract rule. - **Constructor and destructor behavior is the book's pivot point** (Middle): default, parameterized, copy, and dynamic constructors plus destructors are explained with their invocation rules, which underpins later chapters on inheritance and polymorphism. - **Operator overloading and inheritance are taught with rules attached** (Late): the text pairs each overloadable operator with constraints and each inheritance form with visibility modifiers, so you learn what compiles and why. - **Virtual functions connect to real design pitfalls** (Late): the comparison of virtual versus pure virtual functions, plus object slicing and virtual destructors, flags the mistakes that bite beginners in polymorphic code. - **I/O, files, templates, and exceptions round out practical C++** (Ending): stream manipulators, file open modes, end-of-file checks, function/class templates, and re-throwing exceptions give the reader a working toolkit beyond classroom OOP. - **Appendices target assessment and interviews** (Ending): technical questions and language-detail notes suggest the book expects readers to be tested, not just to experiment. 【Reading Tips】 - Deep-read the early syntax chapters only where you feel shaky; if you already write loops and functions comfortably, skim to the class chapter and start there. - Type and run the programs rather than reading outputs — several examples hinge on subtle behavior (missing break in switch, missing braces in a for loop) that only lands when you see the wrong output yourself. - Treat constructor, inheritance, and virtual-function chapters as one continuous block; the later material assumes the earlier invocation rules, so don't skip ahead. - Use the lab-experiment chapter and interview appendix as self-tests after finishing templates and exceptions; they reveal gaps faster than re-reading. - Note that examples use older headers and styles (iostream.h, void main); mentally translate to modern standard C++ as you go. 【Coverage Limits】 The excerpts cover the preface's chapter map and sample material from the early and middle chapters; the later chapters on files, templates, exceptions, and the appendices are known only from the author's summary, so this guide does not assess their depth or quality.
Page 15
w to work with virtual function, rules for virtual function. This chapter also gives the comparison of virtual function and pure virtual function. Also inclu...
View in text
Excerpt 2
<<endl; cout<<“Div of “<<a<<“ and “<<b<<“ is “<<div<<endl; cout<<“Mul of “<<a<<“ and “<<b<<“ is “<<mul<<endl; cout<<“Rem of “<<a<<“ and “<<b<<“ is “<<rem<<en...
View in text
Excerpt 3
<<“num= “<<ptr->num<<endl; cout<<“num= “<<(*ptr).num<<endl; cout<<“num= “<<(*ptr).*iptr<<endl; Function in C++ 157 This process is called winding in the recu...
View in text
Excerpt 4
nctions defy the idea of encapsulation and create exception in the ways of data hiding. 3. Usages of many friend functions some times make you think to redes...
View in text
Excerpt 5
part returned by int_part() function from the original num. In the main we have used the manipulator setprecision which set the number of digits after the de...
View in text
Excerpt 6
ivate members of a parent class, but not protected members. 470 Object-Oriented Programming C++ Simplified Static Binding Types of Binding Dynamic Binding Fi...
View in text
Excerpt 7
en we want to read only from file or write only to the file. In situations when we want to perform reading and writing to the same file. There are two ways :...
View in text
Excerpt 8
we define a function of a class template outside the class. For each function declared in the class template, the definition must contain the first line as :...
View in text
Tags
AI categories
Programming LanguageC++Education
ISBN: 9381159505
Publisher: Laxmi Publications
Publish Year: 2017
Language: English
Pages: 802
File Format: PDF
File Size: 16.3 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…