What is use of
super class
Answers were Sorted based on User's Feedback
Answer / preeti
Super class is one from which we derive a new class.
Only Existing class can be made as Super class.
C# has a super class or root class called "object" from
which all classess are derived.
Is This Answer Correct ? | 22 Yes | 3 No |
Answer / ramesh
SuperClass is a Base Class for an derived class
Is This Answer Correct ? | 17 Yes | 2 No |
super class is also called as the base class or as the
parent class.
we can inherit methods of base class to our derived class
by using inheritance, where derived class is also callled
as the child class if and only if it is derived from the
parent
Exmaple you are the derived class of your parents who are
the base class for you, few of their methods
(looks,emotions,way of speech etc) are into you but few of
our methods(style,behaviour etc) cannot be into your parents
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / penchal das
super class is base class where we can call that method from
any where in that class.
Is This Answer Correct ? | 3 Yes | 0 No |
What is data type c#?
Explain briefly the difference between value type and reference type?
Can a child class call the constructor of a base class?
What is the keyword used to prevent a class from being inherited by another class?
Why do we need to serialize data?
Why do we override in c#?
What is data types in c#?
Is c# int immutable?
What is a partial method?
what is the difference between passing a value object by reference and a reference object by value?
What are satellite assemblies? How will you get the different language strings?
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }