Changes

Jump to: navigation, search

Assignment 2 (Release 0.2): Q & A

1,237 bytes added, 13:30, 16 November 2012
Bug Reports
'''Question Submitted by:''' Team 15<br>
'''A:''' No, the parameter value will NOT be used for drawing a CLabel object. <br>
'''Answer Submitted by:pliu'pliu'' <br><br>
'''Q:''' The CLine constructor (the first one which takes the line's data as a parameter) is supposed to pass this parameter's address directly to the CField constructor (according to the specifications) which takes a void* data argument. But, since the data parameter in CLine has const attached to it, we cannot send it to the CField constructor. How would we resolve this?<br>
'''Question Submitted by:''' Team 15<br>
'''A:''' Good observation! Declare the data parameter without using the const keyword. Indeed, the data parameter should NOT be declared as a const string because it could be EDITED! <br>* Adding to that, the same does not apply to the CLabel/CButton class constructor, it will still take a const char* str argument. - Team 15'''Answer Submitted by: pliu''' <br><br> '''Q:''' What is the size of void pointer? <br>'''A:''' Pointer variables always contain the address of variable.so size of pointer is independent of its type. Size of pointer depends on the environment. On 32-bit environment size of pointer is 4 bytes. <br>'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 2 <br><br> '''Q:''' Does declaring virtual function in class increase the size of object of class? <br>'''A:''' Any class that is having virtual function has a vtable associated with it. So that class contains a vptr(virtual pointer) containing a base address of that vtable. Hence size of any object of that class is increased by one pointer variable. <br>'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 2 <br><br>
== Bug Reports ==
'''*''' In the provided cio-fields-test-3, the backspace still does not stop when the start of the line is reached.
 
'''''Submitted by: Team 4'''''
== Possible/Challenging Enhancements ==

Navigation menu