At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

How is creating subclass of an existing class different from copying the code from the existing class to a new file?

Sagot :

The creating subclass of an existing class different from copying the code from the existing class to a new file because one involves  existing class while the other involves a new class.

What is superclass?

This is known to be creating a class, instead of  declaring completely new members, then a person often designate that the new class to inherit the members of an existing class - Uses Existing class.

What is subclass?

In the creating a class, instead of declaring what we call a completely new members, a person can designate that the new class to be able to inherit the members of an existing class. Uses  New class.

Hence, The creating subclass of an existing class different from copying the code from the existing class to a new file because one involves  existing class while the other involves a new class.

Learn more about subclass from

https://brainly.com/question/19260275

#SPJ1