64.2k views
5 votes
intro to computer programming chapter 2 discussion questions what is the difference between a scene method and a class method?

User Ajith S
by
7.7k points

1 Answer

2 votes

Answer:

A scene method, also known as an instance method, is a method that is associated with an instance of a class and operates on the data of that instance. On the other hand, a class method is related to the class itself and works on the class's data. In other words, a class method is a method that is called on the course rather than on an instance of the class. The critical difference between the two is that a class method operates on the class level, while a scene method operates on the instance level.

Step-by-step explanation:

User Rodelarivera
by
7.3k points