Ask Your Question
1

What are the differences in naming conventions between implementing concrete objects and interfaces?

asked 2023-06-03 09:08:07 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-03 09:22:01 +0000

ladyg gravatar image

When implementing concrete objects, the naming convention typically follows the camelCase convention, which means the first word is in lowercase and the subsequent words are capitalized. For example, a class representing a car might be named "car" or "CarModel".

When implementing interfaces, the naming convention typically follows the PascalCase convention, which means the first letter of each word is capitalized. For example, an interface representing a car might be named "ICar" or "CarInterface".

In general, interfaces are often named to indicate the behavior or functionality that they provide, while concrete classes are named to indicate the object or entity that they represent.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-03 09:08:07 +0000

Seen: 7 times

Last updated: Jun 03 '23