Object-Oriented Programming (OOP) has become the preferred programming approach by
the software industries, as it offers a powerful way to cope with the complexity of real-world
problems. Among the OOP languages available today, C++ is by far the most widely used
language.
Since its creation by Bjarne Stroustrup in early 1980s, C++ has undergone many changes
and improvements. The language was standardized in 1998 by the American National
Standards institute (ANSI) and the international Standards Organization (ISO) by
incorporating not only the new features but also the changes suggested by the user groups.
This book has been thoroughly revised and this edition confirms to the specifications of
ANSI/ISO standards. Besides confirming to the standards, many smaller changes and
additions to strengthen the existing topics as well as corrections to typographical errors and
certain inaccuracies in the teXt have been incorporated. The highlight of this edition is the
inclusion of two new programming projects in Appendix A - (1) Menu Based Calculation
System and (2) Banking System that demonstrate how to integrate the various features of
C++ in real life applications.
This book is for the programmers who wish to know all about C++ language and
objectoriented programming. It explains in a simple and easy-to-understand style the what, why
and how of object-oriented programming with C++. The book assumes that the reader is
already familiar with C language, although he or she need not be an expert programmer.
The book provides numerous examples, illustrations and complete programs. The sample
programs are meant to be both simple and educational. Wherever necessary, pictorial
descriptions of concepts are included to improve clarity and facilitate better understanding.
The book also presents the concept of object-oriented approach and discusses briefly the
important elements of object-oriented analysis and design of systems.
Object£Oriented Progl¡¯amming£¨OOP£© has become the preferred progl¡¯amming approach by
pl¡¯OblCthS£® Athollg thC OOP 18llgllsg6s SV8ilsbl6 todny£¬ C£«£« IS by fal¡¯ th6 thOSt WldCly ifS6d
language£®
ANSI£¯ISO standards£® Besides confirmingto the standards£¬ many smaller changes and
C£«£« in realllfe applications£®
This bookls forthe programmers who wish to know all about C£«£« language and oÐÙect£
and how ofoÐÙect£oriented programmingwlth C£«£«£® The book assumes that the reader Is
already familiar with C language£¬ although he or she need not be an expert programmer£®
Thebookprovldes numerous examples£¬ illustrations and complete programs£® The sample
Key Terms
Key terms listed in each chapter give the I i an{;::li}:c,, i;:1::::;io:::: I
list of important terms discussed in the I i ?:ieiiji:es: i ilii;3}3a::e,,,",," I
chapter. I i:=;it:e;=to," i PO:=:::i::ntu:n. I
-Chapter-end Exercises
More than 350 chapter--end exercise
problems are given for the students to work
out and practice. These include review
questions, debuggi ng exercises and
programming problems.
Programming Projects I
The two programming projects in I I
Appendix A will give an insight on how I I
to integrate the various features of C++ in I I
real-life problems. I I
l proj ect will hem the students to = I
Preface XVi
The following additional information is available on the web at http://www.mhhe.coln/
balagurusamy/oop4e
t Solution to the Debugging Exercises
t Chapter-wise self-test quiz with answers
t Complete code with step-by-step description and user manual for Payroll Management
Systems (Major Project) and Hospital Management Systems (Minor Project).
t Differences between ANSI C, C++ and ANSI/ISO C++
Since the release of the first edition of this book a decade ago, lakhs of teachers, students
and professional programmers have been using the book. Their overwhelming support
encouraged me to bring out the Third Edition in 2006 and now the Fourth Edition.
My sincere thanks are due to the editorial and publishing professionals of Tata
McGraw-Hill for their keen interest and support in bringing out this edition in the present
form.
E B~onRusun