0% found this document useful (0 votes)
50 views1 page

Cse 13

The document outlines 6 programming tasks: 1) Create a Book class with protected data members and a private member function. Enter details of 2 books. 2) Add private member values using a friend function. 3) Overload functions to add integers, doubles, and concatenate strings. 4) Calculate the cube of an integer using call by reference, value, and address. 5) Calculate a factorial using recursion. 6) Display the Fibonacci series using recursion.

Uploaded by

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

Cse 13

The document outlines 6 programming tasks: 1) Create a Book class with protected data members and a private member function. Enter details of 2 books. 2) Add private member values using a friend function. 3) Overload functions to add integers, doubles, and concatenate strings. 4) Calculate the cube of an integer using call by reference, value, and address. 5) Calculate a factorial using recursion. 6) Display the Fibonacci series using recursion.

Uploaded by

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

work;

1. create a class of book enter name,cost and author name. enter the details of 2
books. the data members should be protected and
one member function should be under private category.

2. Add two values in a class which are private members of class using concept of
friend function.

3. Using function overloading take 3 function for adding 2 integer values, 2 double
values & concentrates 2 strings.

4. calculate cube of an int value by using call by reference,value,address

5. calculate factorial of a number using recursion.

6. display fibonocci series using recurssion

You might also like