class declaration

mcqspedia.com has 5 Question/Answers about Topic class declaration

Member functions and member data that are accessible within class, are called

Member functions and member data that are accessible within class, are called
  • A. Private members
  • B. Public members
  • C. Protected members
  • D. None of them
  • Correct Answer: Option A

Functions that are defined inside a class are called

Functions that are defined inside a class are called
  • A. Member functions
  • B. Public functions
  • C. Implemented functions
  • D. None of them
  • Correct Answer: Option A

Preventing access from outside class is called

Preventing access from outside class is called
  • A. Denying
  • B. Information hiding
  • C. Outsourcing
  • D. None of them
  • Correct Answer: Option B

Which keyword is used for declaration of class?

Which keyword is used for declaration of class?
  • A. Public
  • B. Private
  • C. Class
  • D. Include
  • Correct Answer: Option C

Member functions are also called

Member functions are also called
  • A. Methods
  • B. Rational members
  • C. Services
  • D. Both A and C
  • Correct Answer: Option D