What does S stand for in SOLID
What is Single Responsibility Principle?
What operator is used to get the address of a variable?
&
What does C stand for? And what does it do?
Controller
Acts as a "middle-man" between the View and the Model.
What parameter do you put in doxygen comments to denote the date
@date
What does a filled diamond mean in UML diagrams?
When the parent is destroyed, the child is also destroyed, as it doesn't have an independent right of existence (Composition)
What does I stand for in SOLID
What is Interface Segregation Principle?
int x = 5;
int *p = &x;
*p = 20;
cout << x
What will x output?
20
What benefits does Doxygen comments have over other comments?
Doxygen can generate external documentation.
Other answers could include:
Readability
Standard commenting style over other languages
Relates code (such as classes) together
What is the name for the unfilled diamond
Aggregation
int a = 15;
int *ptr = &a;
ptr = 30;
cout << a
What will this code output
Compiler error; specifically:
a value of type "int" cannot be assigned to an entity of type "int *"
'=': cannot convert from 'int' to 'int *'
At an Abstract level, match the three parts of MVC to this example:
Waiter
Kitchen
Menu
C - Waiter
M - Kitchen
V - Menu
Arguments of a function should be use what doxygen parameter?
@param
What is UML short for?
Unified Modeling Language