what is mean by design pattern
Answers were Sorted based on User's Feedback
Answer / mahesh
to provide a solution for a recurring problem in a great
object oriented system.
design pattern describes the problem which occur over and
over again in our environment and then describes the core of
the solution to that problem in a such way we can use that
solution in a million times over without doing it the same
way twice.
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / madhava
design is a order how to develop designs in a specific order
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vikas radadia
order how to develop designs in a specific order
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mahesh
to provide a solution for a recurring problem in a great
object oriented system.
design pattern describes the problem which occur over and
over again in our environment and then describes the core of
the solution to that problem in a such way we can use that
solution in a million times over without doing it the same
way twice.
Is This Answer Correct ? | 0 Yes | 0 No |
What is the advantage of oop over procedural language?
how to find no of instances of an object in .NET?
What are the advantages of inheritance?
26 Answers IBS, TCS,
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
Differences between inline functions and non-inline functions?
Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation
what are the realtime excercises in C++?
what is difference between thread and programme.
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,
what is the drawback of classical methods in oops?
What is virtual function?where and when is it used?
What do you mean by abstraction?