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
Related questions
Concept explainers
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Question
What convention do most programmers follow when naming classes?
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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.
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning