Ask Question

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

+3
Answers (1)
  1. 27 August, 10:20
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers