Question
What Is Specialization/Generalization/Overriding?

Answers

To create a subclass is specialization, to factor out common parts of derived classes into a common base (or parent) is generalization [Booch 91, p56]. Overriding is the term used in Smalltalk and C++ for redefining a (virtual in Simula and C++) method in a derived class, thus providing specialized behaviour. All routines in Smalltalk are overridable and non- "frozen" features in Eiffel can be "redefined" in a derived class. Whenever a method is invoked on an object of the base class, the derived class method is executed overriding the base class method, if any. Overriding in Simula is a combination of overloading and multiple-polymorphism because parameters do not have to be declared. Eiffel and BETA are examples of languages allowing any member to be redefined and not just methods, as is typical.   Your Comment






Search
Can you Answer!!
  • Q Who gave Yves Saint Laurent his start in fashion
  • Q What is a vendor?
  • Q What is critical velocity ?
  • Q Explain Nail Care?
  • Q What is passive topology
  • Q One who deals in flowers is called:
  • Q If he sells 40 mangoes, he will get the selling price of 4 mangoes extra, What is his percentage increase in profit ?
  • Q Happy Days was a spin off from what US TV show
  • Q Which planet hormone is associated with fruit ripening ?
  • Q What are the advantages of commercial papers?
  • Q What is starvation in windows operating system?