What convention do most programmers follow when naming classes?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter10: Classes And Objects
Section: Chapter Questions
Problem 4MQ1
icon
Related questions
Question

What convention do most programmers follow when naming classes?

Expert Solution
Step 1

Naming conventions of a class:

  • Rule 1:
    • Noun or Noun phrase is used for the naming the class.
    • For example, the common nouns are Customer, vehicle and Bank are nouns used to represent a class name.
Step 2
  • Rule 2:
    • Pascal Case is used to name the class as a standard programming.
    • For example, first letter of the Class name is a Capital letter and it is concatenated with first capital letter of subpart of the class name.
    • For example, the Pascal Case naming convention for class is FileStream, MessageBox are some of the PascalCase names.
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Class
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.
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning