What is a class hierarchy? Give an example with super class, sub class hierarchy?
Answers
Answered by
1
Answer:
Superclasses are classes from which other classes (subclasses) have been derived. For example, TextItem is an immediate subclass of the View class. This means that TextItem is directly below View in the class hierarchy.
✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌
Answered by
0
Answer:
An 'object' is composed of fields and methods.
Explanation: Jo
- The fields, also referred to as 'data members', 'characteristics', 'attributes or properties', 'describe the object's state'. In general, the 'methods describe the actions' associated with a specific object.
- Objects of software also have a state and actions. The state of a software object is stored in 'fields' and the action is displayed via methods. 'Methods' operate on an 'object's' internal state in software development, and 'object-to-object communication' is done through methods.
Similar questions
Accountancy,
6 months ago
English,
6 months ago
English,
6 months ago
Biology,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago