Nitin Choudhary
Which class is not inherited from object class?
By Nitin Choudhary in .NET on Feb 11 2015
  • Afzaal Ahmad Zeeshan
    Mar, 2015 8

    None! All of the classes must inherit from System.Object class, that is why all of the classes have .ToString, GetHashCode and other Object inherited functions. What others here are saying, that Sealed class or abstract class is not inherited, is totally wrong. There is no class such as Sealed, sealed means that the class "cannot be inherited" by other classes. It doesn't mean that this class was never inherited by any class. System.Object class is a parent class to all of the classes. Abstract and Sealed are keywords, that let developers tell the compiler, that this class should not be inherited (in case of sealed) and that it should not be initialized and if inherited then its functions if abstract, must be given a body (in case of abstract). But getting outside of the .NET, the raw unsafe pointers are not inherited from System.Object class. So this might be the answer to which object doesn't inherit from System.Object.

    • 11
  • Satish Rajnale
    May, 2015 14

    All classes is inherited from object class

    • 1
  • Nathan Morehart
    Mar, 2015 5

    All objects inherit from System.Object. Sealed only means no one can inherit from you and Abstract means you cannot directly instantiate the class.

    • 1
  • Mahalakshmi Meganathan
    Aug, 2015 7

    Absract Class we can not create the object

    • 0
  • sushil kumar
    Jun, 2015 26

    I have read many blogs and answers some are saying that sealed and abstract class can not be inherited from system.object class. But it is wrong. System.Object class is the parent class of all the classes. By the definition of class sealed and abstract class , definitions saying that you can inherite the class or you cann't make derived from these class . It is not saying it s not inherited from system.Object class. So we definitely say that all the class is inhetited from system.Object class.

    • 0
  • Sujeet Suman
    Jun, 2015 18

    System.Object is a base class of all classes in .Net framework. So all classes in .Net Framework have inherited from System.Object class.

    • 0
  • Pankaj  Kumar Choudhary
    May, 2015 27

    All class Inherited from Object Class and Explanation by @Afzaal is Correct

    • 0
  • Mahadev Mahto
    Apr, 2015 30

    sealed class

    • 0
  • Mahadev Mahto
    Apr, 2015 30

    sealed class

    • 0
  • Mahadev Mahto
    Apr, 2015 30

    sealed class

    • 0
  • Mahadev Mahto
    Apr, 2015 30

    sealed class

    • 0
  • Thavaselvan Palanivel
    Apr, 2015 29

    sealed

    • 0
  • Nirav Vasoya
    Apr, 2015 21

    Abstract Class

    • 0
  • Kml Surani
    Apr, 2015 14

    Abstract Class

    • 0
  • Munesh Sharma
    Mar, 2015 30

    Sealed Class

    • 0
  • Vikram Chaudhary
    Mar, 2015 20

    both reference type as well as value type inherit from System.Object. Did i say value type? Yes indeed value type also inherit from System.Object. This you can try yourself. Try creating a struct and we can see that the variable of that struct will be having all the functions like ToString(), GetType(), GetHashCode() as weel as Equals().

    • 0
  • Ganesh Saraf
    Mar, 2015 12

    All Classes are derived from Object class.

    • 0
  • Abrar Ahmad Ansari
    Mar, 2015 10

    Sealed class is not inherited

    • 0
  • Sandeep Kumar
    Mar, 2015 9

    Sealed Class

    • 0
  • Abdulhaque Ansari
    Mar, 2015 5

    Sealed class is not inherited

    • 0
  • Navin Kumar
    Feb, 2015 27

    Sealed Class not inherited

    • 0
  • Pankaj  Kumar Choudhary
    Feb, 2015 23

    Sealed Class

    • 0
  • Nitin Choudhary
    Feb, 2015 11

    abstract class

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS