0% found this document useful (0 votes)
266 views2 pages

Anna Univ - Oop

This document outlines 20 programming assignments for a lab course in object oriented programming. The assignments involve writing programs in both C++ and Java that demonstrate various OOP concepts like inheritance, polymorphism, exception handling, and multithreading. For each assignment, students must complete one part in C++ and one part in Java. The C++ programs focus on concepts like function overloading, operator overloading, templates and virtual functions, while the Java programs demonstrate threads, interfaces, packages and exceptions.

Uploaded by

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

Anna Univ - Oop

This document outlines 20 programming assignments for a lab course in object oriented programming. The assignments involve writing programs in both C++ and Java that demonstrate various OOP concepts like inheritance, polymorphism, exception handling, and multithreading. For each assignment, students must complete one part in C++ and one part in Java. The C++ programs focus on concepts like function overloading, operator overloading, templates and virtual functions, while the Java programs demonstrate threads, interfaces, packages and exceptions.

Uploaded by

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

ANNA UNIVERSITY : CHENNAI 600 025

B.E. / B. Tech. DEGREE EXAMINATIONS, MAY/JUNE. - 2016


Regulations 2013
Fourth Semester
B.E. (ELECTRICAL AND ELECTRONICS ENGINEERING )
CS6461 OBJECT ORIENTED PROGRAMMING LABORATORY
Time: 3 Hours

Maximum Marks: 100

1. a) Write a C++ program for addition using default arguments. (50)


b) Write a JAVA program with three threads named as one, two, three and initiate
these threads from the main thread and show the result. (50)

2. a) Write a C++ program to perform addition using function overloading.


(50)
b) Write a JAVA program to perform the exception handling for dividing 2 number.(50)

3. a) Write a C++ program to perform employee detail using inheritance. (50)


b)Write a JAVA program to perform the exception handling for dividing 2 number.(50)

4.a)Write a C++ program to perform overloading an operator .(50)


b) Write a JAVA program to implement interfaces. (50)
5.a)Write a C++ program to create student database using virtual base function.(50)
b) Write a java program for creating a package .(50)
6.a) Write a C++ program for implementing call by value ,address and references .(50)
b)Write a JAVA program to perform the exception handling for dividing 2 number.(50)
7.a)Write a C++ program to perform interchanging of two number using template .(50)
b)Write a java program for creating a package .(50)
8. a) Write a C++ program to create and store student detail in sequential random access.(50)
b)Write a JAVA program to implement interfaces. (50)

9. a) Write a C++ program for addition using default arguments.


(50)
b) Write a JAVA program with three threads named as one, two, three and initiate
these threads from the main thread and show the result.
(50)
10.a)Write a C++ program to create student database using virtual base function.(50)
b) Write a java program for creating a package .(50)

11.a) Write a C++ program to perform addition using function overloading.


(50)
b) Write a JAVA program to perform the exception handling for dividing 2 number.(50)

12.a)Write a C++ program to perform interchanging of two number using template .(50)
b)Write a java program for creating a package .(50)

13.a)Write a C++ program to interchange two numbers of different data types in each
function using function overloading. (50)
b) Write a JAVA program to find the factorial of a given number using class and object.(50)
14.a)Wirte a C++ program for implement member function (50).
b)Write a JAVA program for handling Arithmetic exception. (50)
a
15.a)Write a C++ program to perform complex number subtraction by overloading an
operator using friend function. (50)
b) Write a JAVA program with three threads named as P, Q, R and initiate these
threads from main thread and show the result. (50).
16.a)Write a C++ program for random file access.(50)
b)Write a java program to perform string function.(50).
17.a)Wirte a C++ program for implement static member function (50).
b)Write a JAVA program for handling Arithmetic exception. (50)
18.a)Write a C++ program to perform complex number subtraction by overloading an
operator using friend function. (50)
b) Write a JAVA program with three threads named as P, Q, R and initiate these
threads from main thread and show the result. (50).
19.a)Write a C++ program for performing multiplication using array.(50)
b) Write a java program to implement multithreading .(50)
20.a)Write a C++ program to create student database using virtual base function.(50)
b) Write a java program for creating a package .(50)

You might also like