I dont realy have a problem or something but just wondering something.
Is it possible that a class inherit the same instance of a specified class?
Let me make a simple example:
The inherited class:
Class Employe:Code:Public MustInherit Class Person public _Name as string public _Age as string End Class
Class Costumer:Code:Public Class Employe Inherits Person public _Salary as Integer End Class
Code:Public Class Costumer Inherits Person public _MoneyToSpend as Integer End Class
When i create Costumer it more then logic then its a person too.
But when i, as Costumer, gonna work in the shop i olso become an Employe.
But technicly when i make an Employe i olso make a new Person.
Are there ways to solve this problem other then just make lists of wich person is what?
Greets




Reply With Quote