What is Keyword

Explain keywords by giving example.

E

Expert

Verified

Keywords are the words that are reserved to be used for a particular task. Such words cannot be used as identifiers. You cannot use a keyword to define the name of a variable or method. Keywords are used in programs to use the features of object-oriented programming.

For example, the abstract keyword is used to implement abstraction and the inherits keyword is used to implement inheritance by deriving subclasses in C# and Visual Basic, respectively.

The new keyword is universally used in C# and Visual Basic to implement encapsulation by creating objects.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.