C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

Explain keywords with example?

0 votes
18 views
asked by keem Expert (13,240 points)

1 Answer

0 votes
Keywords are those words that are reserved to be used for a specific task. These 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.
 
answered by john Guru (27,140 points)

Related questions

0 votes
1 answer 10 views
10 views asked by rock Expert (14,990 points)
0 votes
1 answer 198 views
198 views asked by sunny Expert (11,410 points)
...