Hi
Q 1) Create classes that will clearly represents fallowing constructs .
*Define a shape object ,where the object is any two dimensional figure , and has fallowing characteristics Name , perimeter ,surface area
* Define circle , retaining and accurately outputting the values of the aforementioned characteristics of a shape
*Define a triangle , this time , the name of the triangle should be taken into account if it is equilateral (3 sides equal) , isosceles (only 2 sides same) , scalene (no side is equal in lengths )
Q 2 ) Choose you are designing spell check application to be used in any editor like Word , Textpad etc . The dictionary used in the memory to ensure quick spell check by the spell check application . WHICH DATA STRUCTURE WILL YOU USE in this dictionary ?WHY justify your view .
Q 3 ) Simple one Http-get vs Http-Post ... i know this thing but they asked difference b/w
hhtp-get , post , HEAD methods . any ideAS ....
Ty for you help
Have a nice day
Loading

VulpesPosted Jan 20, 2014, 7:39 PM
Output:
Q 2)
With HTTP GET the user input is transmitted as a query string appended to the URL.
VulpesPosted Jan 21, 2014, 6:31 AM
Incidentally, with the POST command I should have said that you can optionally append the user input to the URL as you must do with the GET command.
The Shape class needs to be able to accommodate ANY two dimensional figure : triangle, rectangle, pentagon, circle, ellipse or any other regular or irregular figures.
All these figures have in common is that they have a perimeter and a surface area even though these will be calculated differently for each figure.
So Shape is a classic example of an abstract class and the other shapes I've mentioned are concrete classes which derive from Shape and provide the appropriate implementation of the Perimeter and SurfaceArea properties.
It's best for these to be defined as properties rather than methods so that you don't have to keep passing the sides, radius etc as parameters. Instead these can be saved as fields when the concrete class is instantiated.
SUNIL GUTTAPosted Jan 21, 2014, 1:42 AM
I tried like this below . any suggestions how to approach things .. My code suckz right
Thank you
SUNIL GUTTAPosted Jan 21, 2014, 1:09 AM
'
But what about HEAD method ?? any ideas ...