Ask Question
19 October, 19:51

Classes cannot:

A) Be derived from other classes

B) Initialize data members in the class definition

C) Be used to model attributes and behaviors of objects

D) Include objects from other classes as members

+4
Answers (1)
  1. 19 October, 20:12
    0
    Classes cannot Initialize data members in the class definition.

    B) Initialize data members in the class definition

    Explanation:

    Class is defined by end user data type where it can handle multiple data type and referred to other classes also. Class is also called as data structure object or object class.

    Due to class methods total programming language coding style is changes. For example employee of an organization should hold his or her employee number, address detail, spouse details, salary details

    Where in old style programming language we need to declare separate variable to hold the data types, where we can define employee as class which can hold employee number, address fields, and again define salary details as other class and add employee->employee number where key connect between to class which is called derived class.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Classes cannot: A) Be derived from other classes B) Initialize data members in the class definition C) Be used to model attributes and ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers