World's most popular travel blog for travel bloggers.

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 :

3200 people like this

 Download Related Notes/Documents


Post a Comment

Let us know your responses and feedback