You are on page 1of 2

ASSIGNMENT # 1

EEE 3
OOP
MARKS : 50
1. Answer these
A. Explain with suitable example, syntax of for loop in C++.
B. Explain concept of abstract class.
C. State the use of scope resolution operator and its use in C++.
D. State use of new operator.
E. List and explain use of any four file mode parameters
F. Explain use of friend function with the help of suitable example.
G. Write a C++ program to swap two numbers using pointer
2. Make a class Home , which has three data member length, breadth and height.
The member functions are constructor, destructor , calculate area, calculate volume.
Make a proper program with appropriate function calls.
3. Make a program for the given data
class Human
{
private:
EyeColor IColor;
NAME personname;
public:
void SetName(NAME anyName);
void SetIColor(EyeColor eyecolor);
};
4. class person
{
char name[20];
int id;
public:
void getdetails(){}
};
5. Write a C++ program to display number of objects created using static member.

You might also like