What does it mean for a class method to be static? It means the method is private. It means the method is public. It means the method can be called on the class only (ie. ClassName.method(). It means the method can be called on the class as well as on objects of that class (ie. ClassName.method() and object.method()). However, note that it is convention to call static methods on the Class name, not on objects.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

12

What does it mean for a class method to be static?
It means the method is private.
It means the method is public.
It means the method can be called on the class only (ie. ClassName.method()).
It means the method can be called on the class as well as on objects of that class (ie.
ClassName.method() and object.method()). However, note that it is convention to call static
methods on the Class name, not on objects.
Transcribed Image Text:What does it mean for a class method to be static? It means the method is private. It means the method is public. It means the method can be called on the class only (ie. ClassName.method()). It means the method can be called on the class as well as on objects of that class (ie. ClassName.method() and object.method()). However, note that it is convention to call static methods on the Class name, not on objects.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Calling
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning