What is design patterns in C++?
Answers were Sorted based on User's Feedback
Answer / nupur
design patterns are the solution of a problem which arises
when developing software within particular context.
each pattern describes a problem which occurs over and over
again in our environment,and then describes a core solution
of that problem in such a way that this solution can be
used again millons of times .
category of design patterns:-
creational:-singleton,protype,abstract etc.
structural:-adapter,bridge,composite etc.
behavioural:-interpreter,iterator,command etc.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / guest
As ex:- Singleton Class is the Class whose you can make only
one object. Dont forget to do googling.
| Is This Answer Correct ? | 3 Yes | 4 No |
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.
Which is better struts or spring?
What is memory leak and memory corruption?
Name a typical usage of polymorphism
what is ns string? what is ns array?
what is new modifier in C#
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
diff between Abstract class Interfaces?
Why is object oriented programming so hard?
What is the main difference between C++ and Java
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile
what is abstract class ? when is used in real time ? give a exp