0% found this document useful (0 votes)
10 views2 pages

Development Use Case 11 15

Uploaded by

prabathkotti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Development Use Case 11 15

Uploaded by

prabathkotti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Development Use Case 11:

Create a Apex Class Name "Student"

Declare the following with the respective datatype for the variable

Name = Mohammed Adnan

Age = 29

Department = CSE

Course = Salesforce

Delcare the Method > displayDetails

Print the Values

Development Use Case 12:

With reference to Use Case 11

Pass the values through Parameter

Declare the Method > displayDetails(Name, age, Department, Course)

Print the Values

Development Use Case 13:

Declare the access modifier in class to private/protected. Check whether it throws any
error

Development Use Case 14:

Declare the method to static and execute

Check the difference between the static and non-static

Development Use Case 15:

Check the Error in the following program:

//Addition of Two Numbers

private class MyFirstClass {


Integer c;

protected static void addNumbers(Integer a, Integer b){

Integer c;

c = a + b;

System.debug(c);

protected nonstatic void subNumbers(Integer a, Integer b){

//Integer c;

c = a - b;

System.debug(c);

Execute the program and rectify the error

You might also like