We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>


Looking For Something at vustudents.ning.com? Click Here to Search

Total Marks: 20
Due Date: 21/01/2017
Objective:
To learn and understand the basic concepts of Design Patterns.
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
Assignment should be in your own wordings not copied from net, handouts or books.
It should be clear that your assignment will not get any credit (zero marks) if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is copied (from other student or copy from handouts or internet).
For any query about the assignment, please communicate at
CS504@vu.edu.pk
You are advised to please upload the assignment in MS Word format only (other formats i.e.
.pdf, images etc. will not be accepted.)

Question No 1: 10 Marks
According to Roger S Pressman Software architecture alludes to “the overall structure of the software
and the ways in which that structure provides conceptual integrity for a system” .In its simplest form,
architecture is the structure or organization of program components (modules), the manner in which
these components interact, and the structure of data that are used by the components. In a broader
sense, however, components can be generalized to represent major system elements and their
interactions. One goal of software design is to derive an architectural rendering of a system. This
rendering serves as a framework from which more detailed design activities are conducted. A set of
architectural patterns enables a software engineer to solve common design problems.
What makes software architecture “BAD” Are architectures influenced by background and
experience of software architects? Explain. ?
(Answer should be brief i.e, 2-3 paragraphs)

Question No 2 :
Introduction:
In software engineering, the singleton pattern is a software design pattern that restricts
the instantiation of a class to one object. The Singleton pattern ensures that a class has only one
instance and provides a global point of access to that instance. The concept is sometimes generalized
to systems that operate more efficiently when only one object exists. Keep in mind the details and
working of singleton patterns solves the question no 2.
10 Marks

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..


See Your Saved Posts Timeline

Views: 4625

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

Attachments:

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

 

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

&

.•°How to Download past papers from study groups°•. 

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Can  anyone plz tell me which Lectures these Questions are from ??????

Can anyone guide us that how to solve this assgnment

plz koi mje ic ko solution de do mje aj family k sath jan ha or kal ana ha to plz me aj hi submit krwana chahti hu wrna me asignment ni bana saku gi plz help me

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Please provide some clues. No idea from where these questions came ?

Questions should be from Handouts/lectures..

I try to solve the question no. 2. Kinldy analyze the solution is right? And give the comments.

Sr. No. Statement Answer
1 How to define constructor in Singleton patterns?
Protected Singleton ()

{
}

2 What to do in accessor function?
ANS. Accessor function is only use to manipulate the Singleton pattern.

3 Which type of function is defined in class?
ANS. Static

4 Which types of attribute define as single instance in class?
ANS. Static

5 Which type of function use by clients in singleton patterns?
ANS. Static

What about this answer!

1

How to define constructor in Singleton patterns?

constructor is private, the Singleton class cannot be instantiated outside of the class itself

2

What to do in accessor function?

Accessor is to get the value of private data member

3

Which type of function is defined in class?

Public, Protected, Private

4

Which types of attribute define as single instance in class?

Ensure a class has only one instance, and provide a global point of access

5

 

Which type of function use by clients in singleton patterns?

Clients access the singleton exclusively through the Instance member function.

Question no. 1
Answer.
Every time you fix a defect, something else — seemingly unrelated — breaks. This requires exhaustive testing of the entire system for every change. If developers implement code modules any way they like without considering how existing modules operate, the code will become inconsistent, confusing and error prone. With the exception of some types of embedded systems, software should exhibit distributed control. Having too much intelligence in a single module causes bottlenecks and contention issues. This is a classic sign of poor architecture. It’s often faster to simply write one giant module than several smaller ones. Unfortunately, the giant module is harder to test and maintain.

Yes, the architectures are influenced by background and experience of software architects. Because developing the architecture is a creative and iterative process. Develop the architecture design is not a well defined sequence steps that you performed rather than performing the number of activities. This includes system structuring, control modeling and modular decomposition.

1. muhammad amajd app keh rhy hu keh constructor private hu ga. but handouts page no. 143 pr tu constructor protected hia?
2. Accessor function are use to get and set the private value of data, not just to get the value of private data, What about this?
3. Type of function mean the function is simple, static, const, inline etc. not public, private or protected.

secomd question ka answer phir kis ka thik hai..............

RSS

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

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