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
17 views
asked Feb 24, 2014 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 Feb 24, 2014 by john Guru (27,140 points)

Related questions

0 votes
1 answer 13 views
0 votes
1 answer 9 views
9 views asked Apr 15, 2014 by rock Expert (14,990 points)
0 votes
1 answer 20 views
0 votes
1 answer 192 views
192 views asked Mar 27, 2014 by sunny Expert (11,410 points)
0 votes
1 answer 2,023 views
...