Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment

 

 

Question No 1:                                                                                                                                10 Marks

 

You are required to match column A with Column B. You are required to write each in respective column in the given table.  You are required to write only index numbers (No alphabet) of name/terms in the below table against each description.

 

Column A

 

1.      Interface Segregation

2.      Liskov Substitution

3.      Open-Close principle

4.      Dependency Inversion

5.      Single responsibility principle

6.      Violating single responsibility principle

 

 

Answer Sheet

Note: Zero Marks if

·         Create any other answer sheet format.

 

 

Column A

Column B

 

New features can be easily added to a system without changing an existing implementation.

 

Classes should allow for extension but should not accommodate modification

 

Classes should depend on abstractions rather than implementations

 

Subtypes should be faithful to parent types

 

Clients should not depend on unnecessary interfaces

 

Classes should not do more than one thing

 

Class Level {

 

move();

update();

hit();

pause();

resume();

loadGame();

saveGame();

soundLevel();

 

}

 

A class should have only one job

 

Any object in a program should be interchangeable with any other object that has the same parent type.

 

Classes should depend on abstractions, not on implementations.

 

 

  

Deadline: Your assignment must be uploaded/submitted on or before 28-05-2021

 

Views: 312

Attachments:

Replies to This Discussion

Any Idea Solution?

CS603 Assignment No. 2 Complete Solution file link 

CS603-Assignment-02-Solution-Spring-2021-Complete-Solution.docx

Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.

CS603 Assignment 2 Solution 2021 | CORRECT SOLUTION 

CS603 Assignment No#2 Solution Spring 2021

Cs603 Assignment 2 Solution Spring 2021

Student Name

Student ID

Question 1

Solution

Column 1                                 Column2

 

6

New features ran he rawly added to a system without changing an existing implementation

 

3

Classes should allow for extension but should not accommodate modification

 

4

Classes should depend on abstractions rather than implementation

 

2

 

Subtypes should be faithful to parent types

 

1

Clients should not depend on unnecessary interfaces

 

5

 

Classes should not do more than one thing

 

 

 

 

5

Class Level

{

move(); update(): hit(); pause();

resume(); loadGame(): saveGame(): soundlevel();

 

5

 

A class should have only one job,

 

2

Any object in a program should be interchangeable with any other object that has the same parent type

4

Classes should depend on abstractions• not on

Implementations.

 

 

CS603 Assignment No. 2 Complete Solution file link 

CS603-Assignment-02-Solution-Spring-2021-Complete-Solution.docx

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service