Ind Oops
Ind Oops
Chapter 1: Introduction 1
1.1 Introduction to OOPS 1
1.1.1 Difference between c and c++ 1
1.1.2 Evolution of Programming methodologies 2
1.1.3 The Disadvantages of Conventional Programming 4
1.2 Object Oriented Paradigm 5
1.3 Elements of Object Oriented Programming 6
1.4 Merits and demerits of OO methodology 13
1.5 Data Types 15
1.6 Looping Statements 18
1.6.1 The For Loop 18
1.6.2 The While Loop 19
1.6.3 The Do-While Loop 21
1.7 Pointers 21
1.8 Array 22
1.9 Structures 23
1.10 Functions 24
1.10.1 Call by value (pass by value) 25
1.10.2 Call by reference (pass by reference) 26
1.10.3 Inline Functions 27
1.11 Classes 28
1.12 Objects 30
1.13 Constructors 31
1.13.1 Default Constructor 32
1.13.2 Parameterized constructors 33
1.13.3 Copy constructor 34
1.13.4 Dynamic Constructor 35
1.13.5 Destructors 36
Objective:
The objective of the course it to make the students to understand the power of
object oriented programming over structured programming. The course introduces
C++ concepts and its methodologies. It enables the students to develop C++ classes for
simple applications targeted for. Besides, the course introduces the features of the
platform independent object oriented programming language– Java and enables the
students to develop threads and applet programs using Java. On successful
completion of the course, the students will be able to prepare object-oriented design
for small/medium scale problems, to write a computer program for specific problems
and use the Java SDK environment to create, debug and run simple Java programs
and develop GUI based programs using JDK environment.
UNIT I: INTRODUCTION TO OOP
Limitations of structure programming-Object-oriented paradigm, elements of
object oriented programming–Merits and demerits of OO methodology-Data
types-loops-pointers–arrays– structures – functions–Classes – Objects-
Constructor and destructor.
UNIT II: OVERLOADING FUNCTIONS AND FILES
Operator overloading–function overloading-Inheritance–multiple – multilevel –
hierarchical - Virtual base class-friend function-Polymorphism–this pointer-
virtual functions-pure virtual function-Input /Output streams-Files streams –
manipulators – Templates
UNIT III: INTRODUCTION TO JAVA
Introduction to Java–Java vs. C++ - data types – operators –Decision making -
branching-loops -classes – objects-arrays-strings-methods-string handling.
UNIT IV: PACKAGES AND EXCEPTION HANDLING
Inheritance-Packages–API packages– creating packages– adding class to
package-interfaces– multiple inheritance –Exception handling-predefined and
user defined.
UNIT V: THREADS AND APPLETS (QUALITATIVEANALYSIS)
Multi-threaded programming–creating threads-extending the thread class-life cycle of
threads- Applet Programming–applet lifecycle-creating executable applet– passing
parameters to applets -Streams in Java.
TEXTBOOKS
1. E.Balaguruswamy, “Object Oriented Programming with C++”,(4thEdition),Tata Mc Graw
Hill Publications Limited, 2008 (Unit I & II)
2. E.Balaguruswamy, “Programming with Java-A Primer”(3rdEdition),Tata Mc Graw Hill
Publications Limited, 2007. (Unit III, IV,V)
3. Patrick naughton, “The Java Handbook “, Tata McGraw Hill Publications Limited,
2006.( Unit III,IV,V)
REFERENCEBOOKS
1. K.R.Venugopal, RajkumarBuyya, T.Ravishankar, "MasteringC++", TMH, 200.
2. RobertLafore–“OBJECT ORIENTED PROGRAMMING IN Turbo C++”, Waite Group;
3rd edition (December1998)
3. BruceEckel, “Thinkingin Java”, (4th Edition) PrenticeHall PTR, 2006
4. Herbert Schildt, "the Java 2: Complete Reference", Fourth edition, Tata McGraw Hill
publications Limited, 2002.