25.6k views
1 vote
In this chapter, we use the metaphor of a blueprint and houses that are createdfrom the blueprint to describe classes and objects. In this metaphor, are classes theblueprint or the houses?

User Unarity
by
4.4k points

1 Answer

5 votes

Answer:

The correct answer to the following question will be Classes.

Step-by-step explanation:

Class:

  • Class and objects are the two basic concepts of Object-oriented programming language (Oops).
  • A prototype by which an object can be created.
  • A Class is a collection of data members and member functions.
  • A Class is a user-defined blueprint on an object.
  • Declaration of a class includes: Class names, modifiers, Super class, interfaces and body
User Tony Wolff
by
4.3k points