Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
76 views

JECRC University, Jaipur School of Engineering MCA Semester III Programming in C++ - I Assignment No 4

This document contains 7 programming questions as an assignment for a Programming in C++ class. The questions cover topics like function overloading to calculate areas of shapes, constructors and destructors, operator overloading for matrix addition, friend functions to access private data, overloading operators to add complex numbers, and static variables and functions. Students are asked to write C++ programs to demonstrate their understanding of these fundamental C++ concepts.

Uploaded by

Anonymous BOreSF
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views

JECRC University, Jaipur School of Engineering MCA Semester III Programming in C++ - I Assignment No 4

This document contains 7 programming questions as an assignment for a Programming in C++ class. The questions cover topics like function overloading to calculate areas of shapes, constructors and destructors, operator overloading for matrix addition, friend functions to access private data, overloading operators to add complex numbers, and static variables and functions. Students are asked to write C++ programs to demonstrate their understanding of these fundamental C++ concepts.

Uploaded by

Anonymous BOreSF
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

JECRC University, Jaipur

School of Engineering
MCA Semester III
Programming in C++ - I
ASSIGNMENT NO 4

Q1.Write a program to find area of Rectangle, circle and square using Function
Overloading.

Q2.What is Constructor and destructor? Explain various type of Constructor. Is


it Mandatory to use Constructor in a class? Justify it.

Q3.Describe Operator overloading. List the operators which cannot be


overloaded. Create a class to perform matrix addition using operator
overloading.
Q4.What is Friend Function? Write a program to swap private data of two
different class.

Q5.Write a program that defines a class Time that store time values as hours,
min and sec respectively. Perform operation t3=t1+t2 on its object

Q6. Write a C++ program to add two complex number by overloading binary
plus (+) operator.

Q7. What is static variable and static function?

You might also like