Java Extending an Object Except for Some Attributes of Parents

kyoya

New Member
I have a class C extends B. and B extends A. A has an attribute name. I don't want to see name attribute at C class.How can I do that ignore?PS: If it is not possible at Java: I am working on a Spring project that uses Apache CXF and has a web service capability. I want to get B type object from client and send C type object to client. Because of my design issues I don't want to change my inheritance mechanism. If there is a way can I ignore name field at C class? I am implementing as first-code style.
 
Back
Top