3
Reply

Which class that has Methods those cannot be inherited

Pavan Ramamurthy

Pavan Ramamurthy

12y
2.1k
1
Reply
    sealed class
    By using the keyword sealed with the method in the parent class prevent it from inheriting.public class employee{ sealed void display(); }
    Public Class A
    {
    sealed void Print()
            {
                Console.WriteLine("C-sharp");

            }
    }