There are 2 empty jars of 5 and 3 liters capacity. And a
river is flowing besides. I want to measure 4 liters of
wanter using these 2 jars. How do you do this?
Answer Posted / guest
First fill up the 5 liters jar and start filling 3 liters
jar. so now second jar has 3 liters and first jar has 2
liters. Now again fill 5 liters fully and to complete
second jar 1 liter is needed. So, put water in second jar
from first jar. so, 3 liters jar is full now. And first jar
has 4 liters water.
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is polymorphism explain its types?
What is a class in oop?
What are the two different types of polymorphism?
What is difference between data abstraction and encapsulation?
What is a function in oop?
Why polymorphism is used in oops?
what is different between oops and c++
How to call a non virtual function in the derived class by using base class pointer
Why oops is important?
What is oops concept with example?
Why is abstraction needed?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the full form of oops?
what is the drawback of classical methods in oops?