function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
laxmiramlaxmiram 

How to write IF in APEX

how to write a condition in child class

which will bases the datamember in parent class

JeffStevensJeffStevens

Not Totally sure what you're asking - but maybe you're looking for something like this...

 

public class className {

public boolean trueFalse = true();

 

public void methodNameABC {

if (trueFalse = true) {

trueFalse = false;

}

}

}