VF & Controllers & Extensions Flashcards

1
Q

What is wrong with the code below. Why will it throw an error?

public class ShowSimilarCases {

public case getCurrentCase(){
	public string cid = apexpages.currentPage().getparameters().get('cid');
	return [SELECT id, priority FROM Case WHERE Id =: cid];
} }
A

The local string variable access modifier can not be public

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the one tag that is required in an VF page?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly