If you want to make money online : Register now

Term for members of a class that are not inherited

, , No Comments
Problem Detail: 

Is there an explicit term for a member of a class that is not inherited from any parent class?

class Vehicle {     int weight; }  class Car extends Vehicle {     int numDoors; }  Car car = new Car(); car.weight = 10000; // weight is an "inherited member" car.numDoor = 4; // what's the term for numDoor? 
Asked By : Sam Washburn
Answered By : Arthelais

Just a member variable. If you want to specify that it is not inherited, I suppose you could call it 'noninherited member variable'. Wiktionary lists this as a term in computing.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/65500

3200 people like this

 Download Related Notes/Documents

0 comments:

Post a Comment

Let us know your responses and feedback