+ Start a Discussion
sathisathi 

pls give me solution

hi.........can anyone give me some sample programs using inheritance.

harsha__charsha__c

Hi, 

 

Here is the pdf links for inheritance concepts.

 

http://www.cs.utexas.edu/~lavender/courses/tutorial/java-06.pdf

 

http://www.tutorialspoint.com/java/java_inheritance.htm

 

Inheritance is almost same in java as well as salesforce. 

 

 

SRKSRK

public virtual class parent
{
    public void doStuff()
    {
        system.debug('#!@#@!#@!#@!#@!#@!# Test SRK');
    }
}

 

 

public class child extends parent
{
}

 

Then go to Developer Console & run thebeloe mention  code

child CC = new child();
CC.doStuff();

Vinit_KumarVinit_Kumar

Isn't this the duplicate to the below post:-

 

http://boards.developerforce.com/t5/Apex-Code-Development/plsgive-me-solution/td-p/585963

 

Please don't post duplicate post.