Sei sulla pagina 1di 8

TABLE OF CONTENTS

Unit I ............................................................................................................................
OVERVIEW ..................................................................................................................
1.1

Why Object-Oriented Programming in C++................................................................

1.1.1.

Object-Oriented Programming Languages .........................................................

1.1.2.

Difference between Object Oriented Program and Procedure Program ..............

1.1.3.

Basic Difference between C & C++ program ......................................................

1.1.4.

Features of OOPS ..............................................................................................

1.1.5.

Features/Concepts/Principles of OOPS ..............................................................

1.1.6.

Benefits of OOP .................................................................................................

1.2

Native Types and Statements ....................................................................................

1.2.1

Dot (.) Operator ..................................................................................................

1.2.2 Semicolons & Blocks in C++ ....................................................................................


1.2.3 Identifiers .................................................................................................................
1.2.4 Literals .....................................................................................................................
1.2.5 Data Types ..............................................................................................................
1.2.6 Data Type Conversion .............................................................................................
1.2.7 Enumerated Types ..................................................................................................
1.2.8 Operators in C++ .....................................................................................................
1.2.9 Decision Making Statements ...................................................................................
1.2.10 Looping Statements ...............................................................................................
1.3

Functions and Pointers ..............................................................................................

1.3.1

Function .............................................................................................................

1.3.2

Pointers ..............................................................................................................

1.4

Implementing ADTs in the Base Language ................................................................

1.4.1 Structure ..................................................................................................................


1.4.2

Union..................................................................................................................
Additional Programs
Short Answers

Long Answers

UNIT II..........................................................................................................................
BASIC CHARACTERISTICS OF OOP.........................................................................
2.1 Data Hiding and Member Functions ...............................................................................
2.1.1 Classes and Objects ................................................................................................

2.1.2 Class member functions ..........................................................................................


2.1.3 Class access modifiers ............................................................................................
2.1.4 C++ this Pointer .......................................................................................................
2.1.5 Nested Classes .......................................................................................................
2.1.6 Static members of a C++ class ................................................................................
2.1.7 Mutable....................................................................................................................
2.1.8 Containers ...............................................................................................................
2.2 Object Creation and Destruction ....................................................................................
2.2.1 Constructor ..............................................................................................................
2.2.2 Copy Constructor .....................................................................................................
2.2.3 Destructor ................................................................................................................
2.3 Friend Keyword ..............................................................................................................
2.3.1 Friend Function........................................................................................................
2.3.2 Friend Class: ...........................................................................................................
2.4 Polymorphism ................................................................................................................
2.4.1 Method Overloading / Function Overloading ............................................................
2.4.2 Operator Overloading ..............................................................................................
2.5 Data abstraction: Iterators and Containers .....................................................................
2.5.1

Containers ..........................................................................................................

2.5.2 Iterators ...............................................................................................................


Additional Programs
Short Answers
Long Answers

UNIT III.........................................................................................................................
ADVANCED PROGRAMMING ....................................................................................
3.1 Templates ......................................................................................................................
3.1.1 Function Template ...................................................................................................
3.1.2 Class Template........................................................................................................

3.2 Generic Programming ............................................................................................


3.3 STL ........................................................................................................................
3.4 Inheritance .............................................................................................................
3.4.1 Single inheritance ....................................................................................................
3.4.2 Multi-level inheritance ..............................................................................................
3.4.3 Hierarchical inheritance ...........................................................................................
3.4.4 Multiple inheritance ..................................................................................................

3.4.5 Hybrid inheritance ....................................................................................................

3.5 Virtual .....................................................................................................................


3.5.1 Virtual Function ...........................................................................................................
3.5.2 Virtual Class ................................................................................................................

3.6 Friend .....................................................................................................................


3.6.1 Friend functions .........................................................................................................
3.6.2 Friend Class ..............................................................................................................

3.7 Abstract Class ........................................................................................................


3.8 Exception handling .................................................................................................
3.9 OOP Using C++ .....................................................................................................
3.9.1 Class .........................................................................................................................
3.9.2 Objects ......................................................................................................................
3.9.3 Encapsulation and Data abstraction ..........................................................................
3.9.4 Inheritance ................................................................................................................
3.9.5 Polymorphism............................................................................................................
3.9.6 Dynamic Binding .......................................................................................................
3.9.7 Message Passing ......................................................................................................
Additional Programs
Short Answers
Long Answers

Unit IV ..........................................................................................................................
OVERVIEW OF JAVA ..................................................................................................
4.1.

Outline of JAVA ........................................................................................................

4.1.1.

Features of Java................................................................................................

4.1.2.

Simple Java Program ........................................................................................

4.1.3.

Compile and Execute a Java Program ..............................................................

4.1.4.

Java Virtual Machine .........................................................................................

4.2.

Data types, Variables ...............................................................................................

4.2.1 Primitive Data Types...............................................................................................


4.2.2 Reference/Object Data Types .................................................................................
4.2.3 Variable Type .........................................................................................................
4.3.

Arrays .......................................................................................................................

4.3.1 Declarations............................................................................................................
4.3.2 Initialization / Instantiation .......................................................................................
4.3.3 Creation ..................................................................................................................

4.3.4 Basic Functions of Array Class: ..............................................................................


4.3.5 Types of Arrays .....................................................................................................
4.4.

Operators .................................................................................................................

4.4.1 Arithmetic Operators: ..............................................................................................


4.4.2 Relational Operator.................................................................................................
4.4.3 Logical Operator .....................................................................................................
4.4.4 Bitwise Operator .....................................................................................................
4.4.5 Assignment Operator ..............................................................................................
4.4.6 Increment & Decrement Operator ...........................................................................
4.5.

Control statements ...................................................................................................

4.5.1 Conditional Statements ...........................................................................................


4.5.2 Looping Statements ................................................................................................
4.6.

Classes ....................................................................................................................

4.6.1 Declaration .............................................................................................................


4.6.2 Class variables .......................................................................................................
4.6.3 Public class ............................................................................................................
4.7.

Objects .....................................................................................................................

4.7.1 Creation ..................................................................................................................


4.7.2 Character of Objects ...............................................................................................
4.7.3 Creating an Object ..................................................................................................
4.8.

Access Specifiers .....................................................................................................

4.9.

Methods ...................................................................................................................

4.9.1 Declaration .............................................................................................................


4.9.2 Character of Method ...............................................................................................
4.9.3 Method Definition ....................................................................................................
4.9.4 Types of Methods ...................................................................................................
4.9.5 Method Parameters ................................................................................................
4.9.6 Method Calling........................................................................................................
4.9.7 Parameter Passing Methodologies .........................................................................
4.10. Constructor...............................................................................................................
4.10.1 Declaration of constructor .....................................................................................
4.10.2 Types of Constructors ...........................................................................................
4.10.3 Example Program: ................................................................................................
4.10.4 Finilize Method: ....................................................................................................
4.11. Inheritance ...............................................................................................................
4.11.1 Super class ...........................................................................................................
4.11.2 Subclasses ...........................................................................................................

4.11.3 Inheritance types ..................................................................................................


4.11.4 Final Keyword .......................................................................................................

4.11.5 Abstract classes & methods ..............................................................................


Additional Programs
Short Answers
Long Answers

UNIT V .........................................................................................................................
EXCEPTION HANDLING .............................................................................................
5.1.

Packages ..................................................................................................................

5.1.1 Java API packages ..................................................................................................


5.1.2 User defined packages ............................................................................................
5.2.

Interfaces ..................................................................................................................

5.2.1 Definition .................................................................................................................


5.2.2 Defining an Interface................................................................................................
5.2.3 Implementing Interfaces ..........................................................................................
5.2.4 Accessing Implementations through Interface Reference ........................................
5.3.

Exception handling ....................................................................................................

5.3.1 Exception Hierarchy in Java ....................................................................................


5.3.2 Checked Exceptions ................................................................................................
5.3.3 Unchecked Exception ..............................................................................................
5.3.4 Multiple catch Blocks ...............................................................................................
5.3.5 Example program ....................................................................................................
5.4.

Multithreaded programming .......................................................................................

5.4.1 Creating Thread.......................................................................................................


5.4.2 Thread Class Methods.............................................................................................
5.4.3 Multi-Threaded Programming ..................................................................................
5.4.5 Interrupting Thread ..................................................................................................
5.4.5 Thread State ............................................................................................................
5.4.6 Thread properties ....................................................................................................
5.4.7 Thread Synchronization ...........................................................................................
5.4.8 Thread-Safe Collection ............................................................................................
5.4.9 Executors ................................................................................................................
5.4.10 Example Program for thread process by extending thread .....................................
5.4.11 Example Program for thread process by implementing runnable interface .............
5.5.

Strings .......................................................................................................................

5.5.1 Creating Strings .......................................................................................................

5.5.2 String Operations .....................................................................................................


5.6.

Input/Output...............................................................................................................

5.6.1 FileInputStream .......................................................................................................


5.6.2 FileOutputStream ....................................................................................................
5.6.3 File Reader ..............................................................................................................
5.6.4 File Writer ................................................................................................................
Additional Programs
Short Answers
Long Answers

Unit VI
OBJECT ORIENTED PROGRAMMING LABORATORY .............................................
6.1.

Programming with C++ ..............................................................................................

6.1.1.

Functions with default arguments and call by value, address and reference .......

6.1.2.

Simple classes for understanding objects, member functions & constructors .....

6.1.3.

Operator overloading using compile time polymorphism .....................................

6.1.4.

Function overloading using compile time polymorphism .....................................

6.1.5.

Inheritance using run time polymorphism ...........................................................

6.1.6.

Virtual functions ..................................................................................................

6.1.7.

Virtual base classes ...........................................................................................

6.1.8.

Templates ..........................................................................................................

6.1.9.

File Handling - Sequential Access ......................................................................

6.1.10. File Handling - Random Access .........................................................................


6.2.

Programming with Java .............................................................................................

6.2.1.

String Handling in JAVA .....................................................................................

6.2.2.

Creating user defined packages .........................................................................

6.2.3.

User defined interfaces.......................................................................................

6.2.4.

Predefined Interfaces .........................................................................................

6.2.5.

Creation of threading in java ...............................................................................

6.2.6.

Multi-threading....................................................................................................

6.2.7.

Handling predefined exceptions .........................................................................

6.2.8.

Handling user defined exceptions .......................................................................

6.3.

Additional Exercise for Practice .................................................................................

6.3.1.

C++ ....................................................................................................................

6.3.2.

Java ...................................................................................................................

Potrebbero piacerti anche