Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

1: Write a program with an encapsulation class Student(rollno,name,marks) with

functions to set, display, get and


input data. In main function , create 02 student objects, input and display their
data.
2: Write a program with an encapsulation class Product(PId,Pname,Qty) with
functions to set, display, get and
input data. In main function , create 02 product objects, input and display their
data.
3: Write a program with an encapsulation class Student(rollno,name,marks) with
functions to set, display, get and
input data. In main function , create 10 student objects, input and display their
data.
4: Write a program with an encapsulation class Product(PId,Pname,Price) with
functions to set, display, get and
input data. In main function , create 10 product objects, input and display their
data.
5: Write a program with an encapsulation class Student(rollno,name,marks) with
functions to set, display, get and
input data. In main function , create 10 student objects, input and display data of
the student having the highest
marks.
6: Write a program with an encapsulation class Employee(EId,Ename,Salary) with
functions to set, display, get and
input data. In main function , create 10 Employee objects, input and display their
data.
7: Write a program with an encapsulation class Product(PId,Pname,Price) with
functions to set, display, get and
input data. In main function , create 10 product objects, input and display data of
the product having the lowest
price.
8: Write a program with an encapsulation class Student(rollno,name,marks) with
functions to set, display, get and
input data. In main function , create 10 student objects using pointers, input and
display their data.
9: Write a program with an encapsulation class Product(PId,Pname,Price) with
functions to set, display, get and
input data. In main function , create 10 product objects using pointers, input and
display their data.
10: Write a program with an encapsulation class Employee(EId,Ename,Salary) with
functions to set, display, get and
input data. In main function , create 10 Employee objects using pointers, input and
display data of thr Employee
having the highest salary.
11: Write a program with an encapsulation class Vehicle(VId,ModelName,Price) with
functions to set, display, get and
input data. In main function , create 10 Vehicle objects using pointers, input and
display count of the Vehicles
having price in the range of 900000 and 1500000 and ModelName starting with 'M'.

You might also like