3
Reply

Which class that has Methods those cannot be inherited

Pavan R Bhupalam

Pavan R Bhupalam

11y
1.4k
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");

            }
    }