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
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.