Abstract classes are classes which cannot be instantiated. They exist to provide common functionality and interface specifications to several concrete classes.
2
votes
0answers
432 views
EF4.3 MVC 4 Ninject CustomModelBinderAttribute for Abstract base class losing post values
I will try to explain as best i can... Huge post coming as i'm not 100% where the problem lies. It probably has a really simple fix but i'm pulling hair at the min.
I have an abstract base class with ...
2
votes
0answers
73 views
How does CoreData prevent the instantiation of abstract entities?
I was able to instantiate and persist instances of abstract entity in coredata, which I did not expect because abstract entities are suppose to not be able to be instantiated. Are abstract entities ...
2
votes
0answers
486 views
One-to-one association involving a joined-subclass inheritance
I'm stucked on a Hibernate inheritance problem while working on a JSF-based. At first, I was oriented to use a interface implemented by two concrete classes but since mapping interfaces is not ...
1
vote
0answers
47 views
PHP: Calling a 'setup' abstract method from an abstract class constructor; good or bad design?
I'm trying to decide the design pattern for a class structure I'm working with and I'm torn on the best way to implement the setup of the classes.
One approach calls an abstract setup function in the ...
1
vote
0answers
76 views
Dilemma with lazy initialization and callbacks
I need to do lazy initialization so I went for singleton/multiton pattern, but I needed a callback TOO, so I went for an abstract class, but that's a contradiction, it can't be at the same time a ...
1
vote
0answers
117 views
Create criteria using Criteria Builder to query fields of concrete child class of abstract parent class
I working on a requirement where user enters a text and I need to show matching data on screen.
I am using EclipseLink as JPA provider.
Following is the code
@Entity
@Table(name="customer")
public ...
1
vote
0answers
82 views
Applying metaclass rules to all descendants rather than direct metaclassed class
Let me start by defining the goals I have:
Enabling definition of abstract class members (not properties, methods, or instance members) with no default values (not None or some other magic value, ...
1
vote
0answers
87 views
PHP: Strange behaviour with class extending abstract class and implementing an interface
I have a class with the following structure.
abstract class ABS {}
interface INT {}
class SomeClass extends ABS implements INT
{
//class implementation...
}
I'm working on my development ...
1
vote
0answers
329 views
Delphi Abstract error in data access layer implementation
I'm designing my first 3-tier application in Delphi XE. I would like to define my business objects and data access objects in such a way that the business objects don't have to know what version of ...
1
vote
0answers
311 views
c++ native code using an abstract class into a wrapper
I need to implement a c# GUI for my unmanaged code. So i have designed a wrapper to deal with my native code, but this does not work porperly.
I have a method which requires to make an instance to an ...
1
vote
0answers
434 views
XSD abstract types and polymorphism
I'm trying to model the following situation into an XSD schema, but kinda stuck and not sure if XSD supports what I'm trying to achieve.
I have two complex elements, which both should be abstract:
...
0
votes
0answers
19 views
I got an Error “ 'Piksel\Modules\DB\PDO' not found ” for abstract class namespace
I want to use namespace for may project but I have a problem with it.
I got an error like that
"Fatal error: Class 'Piksel\Modules\DB\PDO' not found in
...
0
votes
0answers
25 views
Android source code, Java trace, abstract class
i would like to find out what exactly the Activity.java's setContentView() method is calling/doing.
Here is the Android source code and the code stub at line 1646:
public void setContentView(int ...
0
votes
0answers
47 views
extend HttpClient
I'm trying to create a class that extends httpclient but still is abstract.
public abstract class Repository : HttpClient
{
public override async Task<HttpResponseMessage> ...
0
votes
0answers
39 views
Undefined reference to 'AbstractClass::getInfo'
I have AbstractClass and virtual int getInfo() = 0; plus static int info;
And I have class ConcreteClass with
int ConcreteClass::getInfo()
{
return info;
}
But I get errors
Undefined reference ...