6
Reply

What is a base class?

siva

siva

18y
9.9k
0
Reply

    Base class is a class which  share's the functionality of its methods,properties.. etc. 

    18y
    0

    A class that provides properties and methods as a foundation for a derived class.

    In object-oriented programming, one class can be base for another through inheritance. Using this technique the base class provides characteristics (such as properties and methods) to a derived class. The derived class can modify, reuse, or add to the members of the base class.

    Hi Siva, This is Veera Reddy working in TechMahindra as a Software engineer. The main difference between struct and class is. STRUCTS CLASS 1.Struts are value type. 1.These are reference type. 2.It can be stored on the 2.It can be stored on the stack memory. heap memory. 3.We can create object for 3.We cannot create the struct with out using the new object for the class with opreator. using the new operator. 4.Structs does not support inheritance 4.Classes support inheritance.

    Base class is a class which is designated to share its common properties/fields called as base class.

    Thanks!
    Manoj [InfoAxon Technologies Ltd.]

    18y
    0

    Hi Siva,

    When u use Inheritance, then Class from which u inharits the properties & methods is called as Base Class of that derived class which inharits it.

    Regards,

    Anuj rathi

    Base class is a class named base.