cs304-p-programming-lab (1)
cs304-p-programming-lab (1)
Programming Lab
CS304P – Object Oriented Programming
Lab 01
Consider the following scenario and identify all objects, their attributes and behaviors.
In Virtual University bookshop, the handouts of all courses are provided at reasonable price. The
handouts are made in accordance with the video lectures recorded by famous professors. It is a step to
facilitate students to easily digest the course contents.
Solution:
BookShop
Deliver Order
Update Order
Receive Payment
Handouts
Title Download
Modified Date
Video Lecture
Stop
Forward
Reverse
Increase Speed
Decrease Speed
Increase Volume
Decrease Volume
Playback
Professor
Name Teach
Student
Name Study
Student ID
Study Program
Current Semester
CGPA
Course
Course Instructor
Course Content
Topic No View
Composed by Edit
Published by
Lab 02
In the below diagram, we have two different types of file classes (PDF and Video). You are required to
apply the concept of generalization on the given classes and draw class diagram showing this
generalization relationship.
Solution:
Lab 03
Write a program which consists of a class named Room having two data members
Height and Width, the class should also consist of three constructors i.e. Default
constructor, one argument constructor and two arguments constructor.