Professional Documents
Culture Documents
C
CHAPTER
2
Basics of C++
Programming
C
CHAPTER
5
Arrays
C
CHAPTER
Span of Coverage
9
Classes and
Objects
C
CHAPTER
12
1
2
C
CHAPTER
Inheritance
and Run-Time
Polymorphism
15
15
C
CHAPTER
Exception
Handling
The book provides wider span of coverage of topics, starting from basic
concepts of object oriented programming (OOP) including discussion
on Arrays, Functions, Strings, and
d Pointers, details on all the important concepts such as Classes, Inheritance,
heritance, Operator Overloading, File
Management, and Exception Handling.
ling. It also includes separate chapters
on Standard Library Template (STL)
L) and Object Oriented Systems. This
will help readers have a thorough knowledge of the subject.
16
16
STL and New
Features in C++
Base class
Approach
Derived class 1
The book adopts bottom-up and example-based approach for explaining concepts. It first introduces the concept using simple language,
examples and illustrations, and then delves into its intricacies and
implementation aspects. This makes the text easier
asier to comprehend for
the readers.
Derived class 2
Multi-level inheritance
#include<iostream.h>
#include<string.h>
class Student
Example 15.10
#include<iostream.h>
#include<conio.h>
l
{} a program to nd
Program
3.3 Write
the larger number between two numbers.
#include<iostream.h>
main()
{ int a, b, large;
cout<<"\n Enter the value of a and b : ";
Case Study 1
This case study shows the implementation of concepts number, the smaller number is subtracted from the
discussed in Chapters 1 and 2 on Introduction to OO larger number.
Programming and Basics of C++ Programming.
the Book
Note
it must be
implemented using some formal language, and
such a language is often known as a programming
language.
Glossary
Assembler System software that translates a code
ten in assembly language into machine language
Programming
Tip: You can call
a constructor
from main()
since a
constructor is
like a member
function
declared in the
public section.
ANNEXURE
Review Questions
Programming Exercises
1. Write a program that prints
point value in exponential for
Find the output of the following codes
1. #include<iostream.h>
main()
{
int a = 2, b = 3, c = 4;
if( c!= 100)
3
Bit-Fields in
Structure
ANNEXURE
Sm
mart Pointers
APPENDIX
A
C+
++ Standard
Lib
brary
Fu
unctions
APPENDIX
B
C+
++ Interview
Qu
uestions