What is design pattern?
Answers were Sorted based on User's Feedback
Answer / reejusri
Design pattern is a general repeatable solution to a
commonly occurring problem . A design pattern is not a
finished design that can be transformed directly into code.
It is a description or template for how to solve a problem
that can be used in many different situations.
Object-oriented design patterns typically show
relationships and interactions between classes or objects,
without specifying the final application classes or objects
that are involved.
Design patterns deal specifically with problems at the
level of software design.
| Is This Answer Correct ? | 19 Yes | 0 No |
Answer / harichand tewatia
design pattern is the use of
imagination,scientificprinciple to solve the design problem.
it is not a final design.it show only size & shape of any
product
| Is This Answer Correct ? | 3 Yes | 7 No |
What are the advantages of using a pointer?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
Show the declaration for a static function pointer.
Mention the storage classes in c++.
Distinguish between new and malloc and delete and free().
What is &x in c++?
What are libraries in c++?
Explain storage qualifiers in c++.
What is struct c++?
How would you use the functions sin(), pow(), sqrt()?
What is the difference between ++ count and count ++?
What is the handle class?