The document outlines programming assignments for an Object Oriented Programming lab, including assignments on basic programs to calculate area of a circle, greatest common divisor, and variable swapping, as well as assignments involving classes and objects to calculate factorials and Fibonacci series using methods and constructors, method overloading for polymorphism, and different types of inheritance including single, hierarchical, multilevel, and multiple inheritances using interfaces. The assignments are to be submitted by September 4th, 2013 to professors at Kalyani Government Engineering College's Department of Computer Science and Engineering.
1. Kalyani Government Engineering College
Department of Computer Science & Engineering
Object Oriented Programming Lab
Code: CS 594D
CSE, 3rd Year, 1st Semester
Manju Biswas Kuntal Bhowmick Mridul Islam
Asst. Prof. Asst. Prof. Gate Scholar
Dept of CSE Dept of CSE M.Tech (CSE)
KGEC KGEC
Introduction Programs (ASSIGNMENT–I ) :
1. Write a java program to find out the Area of a Circle.
2. Write a java program to compute the GCD of two numbers.
3. Write a java program to swap the value of two Variables.
Objects, Classes and Methods (ASSIGNMENT–II ) :
4. Write a program in java to find the factorial of a number with two
methods getdata() and calculatefact() by creating objects.
5. Write a program in java to find Fibonacci series using constructors.
6. Write a program in java to implement method-overloading for implementing
polymorphism.
7. Write different java code to illustrate the following properties:
a. constructor
b. constructor overloading
c. static keyword
Inheritance (ASSIGNMENT–III) :
8. Write different java code to illustrate the following properties:
a. Single inheritance
b. Hierarchical inheritance
c. Multilevel inheritance
d. super keyword & this keyword
e. final class, final variables & methods
f. abstract class
9. Write a program in java to implement multiple inheritances using interface.
Date of Submission: 04-09-2013