Home Demos Forum Research Guide
Viewing topic in forum 'general'
back to topic list

Data Inheritance
Assuming i have the following data type declarations:

data Abc{
copy char name[];
}

data Def extends Abc{
copy int age;
copy char gender;
}

Which one of these is correct?

A) Def mybio = new Def("Umar Enesi Ibrahim", 27, "M");

B) Def mybio = new Def(27, "M", "Umar Enesi Ibrahim");

by enesi on 2015-06-09 12:28:32 (1 reply)

Hi,

The answer is letter A) Def mybio = new Def("Umar Enesi Ibrahim", 27, "M");

According to the latest implementation of the VM.

- Roberto
by roberto on 2015-06-09 14:41:41
© Francis Research Ltd. 2018