G
Guest
Imagine I have two classes A and B.
Class A has the function I, function J and Attribute K.
Class B has the funcion X, function Y, Attribute Z.
Is it possible to establish the following Class C through interitance:
Class C which has the attribute K inherited from Class A and the attribute Z
inherited from Class B ?
If this is not possible why not!??! In the real world example I was thinking
of maybe
An CustomerInvoice class , that interhited the attributes from a Customer
class, Product class and Order class, but necessarily all of the functions.
Class A has the function I, function J and Attribute K.
Class B has the funcion X, function Y, Attribute Z.
Is it possible to establish the following Class C through interitance:
Class C which has the attribute K inherited from Class A and the attribute Z
inherited from Class B ?
If this is not possible why not!??! In the real world example I was thinking
of maybe
An CustomerInvoice class , that interhited the attributes from a Customer
class, Product class and Order class, but necessarily all of the functions.