1. I have refreshed full copy sandbox on 04-Nov-2019 and to complete refresh it took 6 days. Assume refreshing is completed on 11-Nov-2019. When will be the next interval time?
Ans:
a. Full copy sandbox Refresh interval = 29 days.
b. Next refresh availability is based on "Last Refresh Request Date" it won't depend on when the previous refresh request finished. Please find the below screenshot for reference.
2. How top layer class access modifier plays a role if 2 classes are part of the inheritance?
Ans:
a. Full copy sandbox Refresh interval = 29 days.
b. Next refresh availability is based on "Last Refresh Request Date" it won't depend on when the previous refresh request finished. Please find the below screenshot for reference.
2. How top layer class access modifier plays a role if 2 classes are part of the inheritance?
Ans: If 2 classes are part of Inheritance then Parent and child Classes can be with 2 different access modifiers, it means, the parent can be either Public or global. The same goes for child class as well. Below 2 classes will help to understand the same.
Note: In apex, Top-level type must have public or global visibility.
3. How 2 different classes can communicate without inheritance?
tHiNk gooD and dO thE bEsT.........MANJU NATH 🌝
public abstract class SuperParent { Private Integer a=10; protected Integer b=20; Public Integer c=30; //If Outer class is public then it won't allow //it's memebers with global access modifier //global Integer d=40; } global class DependentClass extends SuperParent { public void m1() { //Private variables are invisible other than where it is declared //System.debug('--a --- '+a); System.debug('--b --- '+b); System.debug('--c --- '+c); } }
3. How 2 different classes can communicate without inheritance?
global class SuperParent { Private Integer a=10; protected Integer b=20; Public Integer c=30; global Integer d=40; } public class NonDependentClass { void m1() { //Below declaration is only possiable if the class is not abstract SuperParent obj = new SuperParent(); //Private & Protected are unavaliable in nondependent class //System.debug('--a --- '+obj.a); //System.debug('--b --- '+obj.b); System.debug('--c --- '+obj.c); System.debug('--d --- '+obj.d); } }
tHiNk gooD and dO thE bEsT.........MANJU NATH 🌝
Than you for sharing and these question are helpful for me.
ReplyDelete