why is a class developed how are classes organized and stored?

2 Answers

  • Classes are developed in order to bundle related data elements together, typically the different data and attributes of an object of some sort. They are organized hierarchically.

    Class transportation

    moves things around

    under class transportation you have

    class airplane

    class train

    class truck

    class car

    all of whom implement transportation as their basis and then add the details which are specific to their type.

    under car you might have

    class coupe

    class sedan

    class wagon

    class suv

    class shoebox (those two seater electric things)

    etc.

  • yes

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts