Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How can we set class to be inherited, but prevent the method from being over-ridden?
Home
Dot Net
How can we set class to be inherited, but prevent the method from being over-ridden?
0
votes
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
How can we set class to be inherited, but prevent the method from being over-ridden?
#dotnet
#chash
#basicc#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 25, 2019
by
Venkatshastri
Declare the class as public and make the method sealed to prevent it from being overridden.
...