Languages-C & C Plus Plus [3i Infotech Placement]: Sample Questions 216 - 217 of 354

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 216

C & C Plus Plus

Write in Short

Short Answer▾

What is meant by “method-wars” ?


  • Before 1994, there were different methodologies like Rumbaugh, Booch, Jacobson, Meyer etc. who followed their own notations to model the systems putting developers in dilemma.
  • This span was called “method-wars”
Given the Description of Method Wars

Question 217

C & C Plus Plus

Describe in Detail


Differentiate between declaration and definition in c ++ .


  • A declaration introduces a name into the program while a definition provides a unique description of an entity (e. g. type, instance, and function) .
  • Declarations can be repeated in a given scope if they introduce the same name in a given scope but there must be exactly one definition of every object, function or class used in a C ++ program.
  • A declaration is a definition unless it
    • Declares a function without specifying its body
    • Contains an extern specifier and no initializer or function body
    • Is the declaration of a static class data member without a class definition
    • Is a class name definition
    • Is a typedef declaration
  • A definition is declaration unless it:
    • Defines a static class data member,
    • Defines a non-inline member function.

Developed by: