C++ MQCs with Explanation. (CHAPTER 1:PRINCIPLES OF OBJECT – ORIENTED PROGRAMMING)

Who developed the PyA rectangle notation that is used to denote an object usually show?

  1. data and functions of the object
  2. communication links with other objects
  3. only data members of the object
  4. relationship with other objects



Answer: 
Option a: data and functions of the object

The rectangle notation that is used to denote an object in C++ usually shows data and functions of the object. This is because the rectangle notation is a way of representing the class of the object, which is a blueprint that defines the data and functions that all objects of that type have.
Data
  • Yead of release
  • Model
  • Color
Functions
  • getMake()
  • setMake(string make)
  • getModel()
  • setModel(string model)
  • getYear()
  • setYear(int year)
  • getColor()
Class Rectangle Notation

Post a Comment

0 Comments