0% found this document useful (0 votes)
8 views3 pages

BC 230430078

Uploaded by

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

BC 230430078

Uploaded by

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

SE601P - Software Construction &

Development Total marks: 15

Deadline Date:
Fall 2024 04/01/2025

Assignment No. 2

Please carefully read the following instructions before attempting the assignment.
RULES FOR MARKING

Instructions:

Please read the following instructions carefully before submitting assignment:


 You should submit your assignment before or on due date through the VULMS.
 Your assignment should be your own work in your own words.
 It should not be copied from the Internet, ChatGPT, handouts or books.
 Your Assignment solution must be in Microsoft Word document format. Assignment
solution in other than Microsoft Word document will not be accepted.
 Assignment sent via email will not be replied and accepted.
 If the submitted assignment does not open or file is corrupt, it will not be marked and hence
awarded zero marks.

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load
shedding or internet malfunctioning). Hence refrain from uploading assignments in the last hour of the
deadline. It is recommended to upload your solution file at least two days before its closing date.
If you find any confusion in the assignment (Question statement), please contact your instructor before
the deadline. After the deadline, no queries will be entertained in this regard.
For any query, feel free to email at [email protected]
Problem Statement:

Qs. No.1 Marks 15

Given below are some design principles. Write down the correct Object Oriented
Design Principles design principles in Term column.

1. Association
2. Composition
3. Aggregation
4. Object
5. Abstraction
6. Encapsulation
7. Inheritance
8. Polymorphism
Sr.No. Term Description
1 A program that can draw different shapes such as circles,
and rectangles using the same interface.

2 A Car class inherits properties from a general Vehicle


class.
3 The account balance is private and can be accessed or
modified only through methods like deposit or
withdrawal.
4 Users interact with an ATM's abstract interface (insert
card, enter PIN, withdraw money) without knowing how
it works internally.

5 A car is an object with properties like brand and


methods like drive.

6 A library contains books, but a book can exist without


the library.

7 A house is composed of rooms, and if the house is


destroyed, its rooms cease to exist.

8 A teacher teaches students, and a student learns from a


teacher, but both can exist independently.
Sol:

Design Principle Term


Association Association
Composition Composition
Aggregation Aggregation
Object Object
Abstraction Abstraction
Encapsulation Encapsulation
Inheritance Inheritance
Polymorphism Polymorphism

You might also like