OOP

Welcome to Object Oriented Programming (C++ & Java) blog...Here You can get all study material, tutorials etc...

Wednesday, 31 January 2018

Welcome to Object Oriented Programming learning Blog

Syllabus


[204190] Object Oriented Programming
Credit: Th-03, Pr-02



Teaching Scheme:
Theory: 3 Hrs/ Week
Practical : 4 Hr/Week
Examination Scheme:
Online: 50 Marks
Paper: 50 Marks
Oral : 50 Marks
Course Objectives:
• Make the students familiar with basic concepts and techniques of object oriented programming in C++ & Java.
• Develop an ability to write programs in C++ and Java for problem solving.
Course Outcomes:
Upon successful completion of this course, students should be able to:
1. Describe the principles of object oriented programming.
2. Apply the concepts of data encapsulation, inheritance in C++.
3. Understand basic program constructs in Java
4. Apply the concepts of classes, methods and inheritance to write programs Java.
5. Use arrays, vectors and strings concepts and interfaces to write programs in Java.
6. Describe and use the concepts in Java to develop user friendly program,
Principles of OOP: Software crisis, Software evolution, OOP paradigm, Basic Concepts of OOP, Benefits & applications of OOP.
Beginning with C++: What is C++, Applications of C++, A Simple C++ Program, More C++ statements.
Moving from C to C++: Declaration of variable, Reference variables, Scope resolution operator, Member dereferencing operator, memory management operators.
Functions in C++: Function prototyping, Call by reference.
Classes & Objects: Specifying a class, Defining member functions, A C++ program with class, Making an outside function inline, Nesting of member function, Private member function, Arrays within class, Member allocation for objects, Arrays of objects, Objects as function arguments.
Constructors & Destructors: Constructors, Parameterized constructors, Multiple constructors in a class, Constructors with default arguments
Operator overloading concept: Use of operator overloading, defining operator overloading, Binary operator overloading.
Introduction to Inheritance: Concept and types of Inheritance, Defining derived classes, Single inheritance, Making a private member inheritable, multilevel inheritance.
Evolution of Java, Comparison of Java with other programming languages, Java features, Java Environment, Simple Java Program, Java Tokens, Java Statements, Constants, variables, data types. Declaration of variables, Giving values to variables, Scope of variables, arrays, Symbolic constants, Typecasting, Getting values of variables, Standard default values, Operators, Expressions, Type conversion in expressions, Operator precedence and associativity, Mathematical functions, Control statements- Decision making & branching, Decision making & looping.
Class Fundamentals, Declaring Objects, Assigning Object reference variables, Methods, Constructors, The This keyword, Garbage collection, finalize method, Overloading methods, using objects as parameters, Argument passing, returning objects, Recursion, access control, static, final, arrays, strings class, Command line arguments.
Inheritance basics, Using Super, Creating Multilevel hierarchy, Constructors in derived class, Method overriding, Dynamic method dispatch, Using Abstract classes, Using final with inheritance, Object class, Packages, Access protection, Importing packages, Interfaces: Define, implement and extend. Default interface methods, Use static method in interface.
Introduction to multithreading: Introduction, Creating thread and extending thread class.
Concept of Exception handling: Introduction, Types of errors, Exception handling syntax, Multiple catch statements. I/O basics, Reading console inputs, Writing Console output.
 Applets: Concepts of Applets, differences between applets and applications, life cycle of an applet, types of applets, creating a simple applet.
Text Books:
Reference Books:
1. Robert Lafore, “Object Oriented Programming in C++”, Sams Publishing, 4th Edition.
2. T. Budd, Understanding OOP with Java, Pearson Education.
3. Matt Weisfeld, “The Object-Oriented Thought Process”, Pearson
4. Cox Brad, “Object –Oriented Programming: An Evolutionary Approach”, Addison –Wesley

List of Practical:

(Perform any 4 from group I and any 12 from group II)

Group I


1. Write a program in C++ to implement database of persons having different profession e,g. engineer, doctor, student, laborer etc. using the concept of multiple inheritance. The objective of this assignment is to learn the concepts of inheritance.


2. Write a program in C++ to sort the numbers in an array using separate functions for read, display, sort and swap. The objective of this assignment is to learn the concepts of input, output, functions, call by reference in C++.


3. Write a program in C++ to perform following operations on complex numbers Add, Subtract, Multiply, Divide, Complex conjugate. Design the class for complex number representation and the operations to be performed. The objective of this assignment is to learn the concepts classes and objects


4. Write a program in C++ to implement Stack. Design the class for stack and the operations to be performed on stack. Use Constructors and destructors. The objective of this assignment is to learn the concepts classes and objects, constructors and destructors.



5. Write a program in C++ to perform following operations on complex numbers Add, Subtract, Multiply, Divide. Use operator overloading for these operations. The objective of this assignment is to learn the concepts operator overloading.


Group II

6. Write some simple programs in Java such as
i) To find factorial of number.
ii) To display first 50 prime numbers.
iii) To find sum and average of N numbers.


7. Write a program in Java to implement a Calculator with simple arithmetic operations such as add, subtract, multiply, divide, factorial etc. using switch case and other simple java statements. The objective of this assignment is to learn Constants, Variables, and Data Types, Operators and Expressions, Decision making statements in Java.


8. Write a program in Java with class Rectangle with the data fields width, length, area and colour. The length, width and area are of double type and colour is of string type. The methods are get_length(), get_width(), get_colour() and find_area(). Create two objects of Rectangle and compare their area and colour. If the area and colour both are the same for the objects then display “ Matching Rectangles”, otherwise display “ Non-matching Rectangle”.


9. Write Programs in Java to sort i) List of integers ii) List of names. The objective of this assignment is to learn Arrays and Strings in Java


10. Write a Program in Java to add two matrices. The objective of this assignment is to learn Arrays in Java


11. Write a program in Java to create a player class. Inherit the classes Cricket_player, Football_player and Hockey_player from player class. The objective of this assignment is to learn the concepts of inheritance in Java.


12. Write a Java program which imports user defined package and uses members of the classes contained in the package.


13. Write a Java program which implements interface.


14. Create an applet with three text Fields and four buttons add, subtract, multiply and divide. User will enter two values in the Text Fields. When any button is pressed, the corresponding operation is performed and the result is displayed in the third Text Fields.

15. Write a java program which use try and catch for exception handling.

17. Write a program to implement stack or any other data structure in Java

18. Write a program to create multiple threads and demonstrate how two threads communicate with each other.

19. Write a program to implement addition, subtraction and multiplication of two complex numbers  in Java

20. A Mini project in Java: A group of 4 students can develop a small application in Java.

No comments:

Post a Comment

Thank you for your visit