You need to sign in to do that
Don't have an account?
Jyothsna Reddy
Superclass in apex?
Hello,
What is the SuperClass in apex ? In Java Object is super class.
one way of intializing/decalring an object is below
Object obj ;
public className(){
obj =new Sample();
}
other way is Sample sampObj=new Sample();
Now ,Comming to salesforce ,How can i declare the Object.
I know one way is Sample__c obj=new Sample__c();
I want to use super class while initializing....
What is the SuperClass in apex ? In Java Object is super class.
one way of intializing/decalring an object is below
Object obj ;
public className(){
obj =new Sample();
}
other way is Sample sampObj=new Sample();
Now ,Comming to salesforce ,How can i declare the Object.
I know one way is Sample__c obj=new Sample__c();
I want to use super class while initializing....
All Answers
Means I have String s="Sample__c";
Actually this String s will come dynamically ...Is this possible?