Interviews6 answers
6 Answers
Base class is a class which share's the functionality of its methods,properties.. etc.
mail_vacPosted Aug 9, 2006, 4:11 AM EDT
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.
sivaPosted Jul 31, 2006, 4:23 AM EDT
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.
Posted Jul 30, 2006, 10:22 PM EDT
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
Anuj KumarPosted Jul 30, 2006, 12:29 PM EDT
Base class is a class named base.
Bindu Punjab Amar Singh Nahasapeemapetalon GaneshPosted Jul 30, 2006, 10:33 AM EDT