B.Tech-IT Object Oriented Programming Lab (Staff Manual)-2013
BITL12011SyllabusBITL1201 OBJECT ORIENTED PROGRAMMING LAB 0 0 3 11.
Design C++ classes with static members, methods with default
arguments, 2. Develop friend function to do matrix-vector
multiplication 3. Implement complex number class with required
operator overloading and type conversion. 4. Implement matrix class
with dynamic memory allocation and required methods. 5. Overload
the new and delete operators to provide custom dynamic allocation
of memory. 6. Write a C++ program that randomly generates complex
numbers 7. Develop a program that implements inheritance 8.
Implement Virtual function 9. Implement template B.Tech-IT Object
Oriented Programming Lab (Staff Manual)-2013
BITL12012ExercisesTable of ContentsEx.No. Name of the Exercises
Page no.1a Write a c++ program to implement the concept of static
data member in class.31b Write a c++ program to implement the
concept of static function in class41c Write a c++ program using
function with default argument 62Write C++ program to define matrix
and vector class, to use function with default argument and to do
matrix-vector multiplication using friend function73a Write a
program to add two complex numbers using binary operator
overloading103b Write a C++ program to implement complex number
class with necessary operator overloading and type conversion124a
Write a C++ program to Calculate Prime Number Using Constructor154b
Write a C++ program to delete the object Using Destructor 174c
Write the c++ program to implement the concept of copy
constructor184d Write C++ program to define matrix class with
dynamic memory allocation and to use constructor, destructor, copy
constructor and assignment operator overloading.195 Write C++
program to overload new and delete operators to provide custom
dynamic memo allocation226 Write a C++ program to perform addition
of complex numbers using files.247a Write a c++ program to multiply
the positive numbers using single inheritance.267b Write a c++
program using multiple inheritances for collecting employee
details.288a Write a c++ program for calculation of area of shapes
using virtual functions308b Write a c++ program for a student mark
list processing using virtual base class.319a write a c++ program
using function template to find the maximum of two datas 339b Write
a c++ program using class template to find the greater of the given
two datas.34B.Tech-IT Object Oriented Programming Lab (Staff
Manual)-2013 BITL12013Ex no: 1a CLASS WITH STATIC DATA MEMBERAimTo
write a c++ program to implement the concept of static data member
in class.AlgorithmStep 1: Start the program.Step 2: Declare the
static variable in the class.Step 3: Increment the value of static
variable and store it in another variable.Step 4: Print the output
of the static variable and the ordinary variable. Step 5: Repeat
the Step 3, 4 again and again.Step 6: Stop the
program.Program:#include class item{static int count; int num;
public: void getdata(int a){num=a; count++; cout