04-29-2011, 07:44 AM
What is the sub type of Extension plz explain it
|
What is the sub type of Extension
|
|
04-29-2011, 07:44 AM
What is the sub type of Extension plz explain it
04-29-2011, 07:44 AM
Sub typing (extension) means that derived class is behaviourally compatible with base class. In extension derived class have all the characteristics of base class plus some extra characteristics (derived class own characteristics). Class A is a subtype of B if A can be used in any situation where B can be used. It means that A has at least all the methods of B with the appropriate types, plus any instance variable.
Examples: Person is a base class and Student class is derived from Person class Person Name Age Gender Eats Walks Student Program StudyYear Study TakeExam Student class has two extra attributes program and studyYear. Similarly it has extended behaviour by adding Study and TakeExam. Also Student class has all the characteristics of base class Person. 0300-9520262 Get solution in 24 hour |cpmputer & internet mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Abstract data type (ADT) in C++ 2012 | Vuhelper | 0 | 7,130 |
01-04-2012, 10:34 PM Last Post: Vuhelper |
|
| how to pass a simlpe list of data type struct to function in c++ 2011 | Vuhelper | 0 | 885 |
07-20-2011, 10:49 PM Last Post: Vuhelper |
|
| must have an argument of class or enumerated type | Vuhelper | 0 | 1,498 |
06-11-2011, 06:46 PM Last Post: Vuhelper |
|
| Is it possible to make data type array which act as java Class Object in dev c++ 2011 | Xpert | 0 | 2,587 |
05-12-2011, 09:00 PM Last Post: Xpert |
|
| what is difference between object data type and Permitive data type in c++ 2011 | saneha | 1 | 8,111 |
05-02-2011, 06:26 AM Last Post: Vuhelper |
|
| What data type will be used in C++ program? | sana.pari | 1 | 2,322 |
04-24-2011, 06:07 PM Last Post: Support |
|
| i used Char data type to store a sentence but there is problem | sana.pari | 1 | 1,923 |
04-24-2011, 05:35 PM Last Post: Support |
|
| char data type in c and C++ | sana.pari | 1 | 2,774 |
04-24-2011, 05:32 PM Last Post: Support |
|