[go: up one dir, main page]

0% found this document useful (0 votes)
18 views4 pages

Ind Oops

Uploaded by

Thiaga Rajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Ind Oops

Uploaded by

Thiaga Rajan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Contents

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

Chapter 2: overloading functions and files 38


2.1 Operator Overloading 38
2.1.1 Unary Operators 39
2.1.2 Binary Operators 39
2.2 Function overloading 42
2.3 Inheritance 43
2.3.1 Types of Inheritance 43
2.4 Virtual Base Classes 48
2.5 Friend Functions 51
2.6 Polymorphism 53
2.7 Virtual functions 55
2.8 Pure Virtual Functions 56
2.9 Files streams 56
2.9.1 File modes 58
2.10 Templates 61
2.10.1 Function Templates 61
2.10.2 Class templates 63

Chapter 3: Introduction to java 65


3.1 Java has powerful features 65
3.1.1 Application of Java 66
3.2 Java vs. C++ 66
3.3 Data Types 67
3.3.1 Primitive Data Types 67
3.4 Operators in Java 71
3.5 Decision making in java 74
3.5 Java loops 78
3.6 Object 83
3.7 Classes 84
3.8 Array 87
3.9 Strings 89
3.9.1 Operation on String 89
Chapter 4: Packages and Exception Handling 92
4.1 Inheritance 92
4.2 Java Packages 94
4.2.1 Creating Packages 95
4.2.2 API packages 96
4.2.3 Type of Java API 96
4.2.4 Adding Class To Package 96
4.3 Interfaces 97
4.3.1 Implementing Interfaces 98
4.3.2 Multiple inheritances 98
4.3.3 Inner classes 99
4.4 Exception Handling 101
4.4.1 Multiple Catch Statement 102
4.4.2 Predefined Exception 103
4.4.3 User defined exceptions 105
Chapter 5: Threads and Applets 106
5.1 Thread 106
5.1.1 Multithreading 106
5.1.2 Life cycle of a Thread 107
5.2 Java – Applets 110
5.2.1 Life Cycle of an Applet 110
5.2.2 Getting Applet Parameters 111
5.2.3 Passing Parameters to Applets 113
5.3 Java – Streams 115
5.3.1 Stream Classes 116
5.3.3 Data Streams 119
5.3.4 File I/O 120
2-Marks questions with Answers 181
Question Bank 200
EE T46 OBJECT ORIENTED PROGRAMMING

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.

You might also like