This is the Composite pattern, one of the "Gang-of-Four" design patterns (check out their book!).
Answer:
DataTransmitter.sendTwo(15.955, 13);
Explanation:
The code above will call the method sendTwo() which exists inside the class DataTransmitter
Because this a static method it can be invoked with only the dot operator without making an object of the DatTransmitter class with the new Operator
Since the method sendTwo () accepts two parameters of type double and int respectively, the values 5.955, 13 are passed as argument during the method call.
Answer:
Option (A)
Explanation:
In the post order traversal, we always print left subtree, then right subtree and then the root of the tree. In preorder traversal, First the root is printed, then, left subtree and at last, right subtree, so, the first element in preorder is the root of the tree and we can find elements of left sub tree from in order as all the elements written left to the root will of left subtree and similarly the right one. This is how repeating it will give the post order traversal.
Answer:
k bhaneko hmm where ez the pic????????