Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [abstract]

The tag has no usage guidance.

-1
votes
1answer
34 views

How does object inheritance interact with sharing inheritance?

Let's say I have some class: public abstract without sharing MyUnsharingClass { // Some methods... } which is extended by public SomeClass extends MyUnsharingClass { // Some methods... } ...
9
votes
2answers
161 views

How to use @AuraEnabled base class method in Lightning Component?

We are consolidating our common methods into an Abstract controller base class. Here's an example: public abstract class CommunityControllerBase { /* Returns a select option list of ...
1
vote
0answers
14 views

State transfer between abstract extensible component and lightning:isUrlAddressable

I've got a little problem and thinking I might have designed my component a little incorrectly. I'm storing quite a bit of state in an abstract extensible component for convenience. I've noticed if I ...
13
votes
1answer
644 views

Can create an Instance of Abstract Class, Salesforce Bug?

I was playing with Apex and stumbled upon this. Created an Abstract Class and made the constructor as private, so that noone can create an instance of it. This works just fine during compilation. it ...
4
votes
2answers
138 views

How can I upsert a homogeneous List<SObject>, in a good way? [duplicate]

I have some abstracted code, which at the end of some process will create a homogeneous list of SObjects. It could be a list of Accounts, it could be a list of contacts, it could be a list of some ...
0
votes
0answers
72 views

Utility methods failing with 'cannot call test methods in non-test context'

I generate a number of different email notifications from Cases, with variations depending on Account location, for example. They've morphed from basic workflow email templates in order to gather ...
5
votes
0answers
196 views

Using abstract component to iterate sub-component - how to correctly bind state?

I have this idea for a generic component that would allow adding, deleting and copying entries in the form - abstract component handles adding, cloning, etc, while your main component holds actual ...
1
vote
1answer
191 views

Abstract Class with Generic Type?

Is there a way I can implement something like an abstract class with a generic type? For example, I want to be able to write code like the following (I know there are issues there). The main error I ...