+ 1

Write a program to find area of rectangle and volume of cuboid using simple inheritance

Can any body solve this in best way

4th Nov 2020, 2:55 PM
Shabista Imam
Shabista Imam - avatar
4 Antworten
+ 3
var cuboid = { length: 25, width: 50, height: 200 }; //your code goes here var x = cuboid.length var y = cuboid.width var z = cuboid.height console.log(x*y*z);
12th May 2021, 12:32 AM
Forrest Harjo
Forrest Harjo - avatar
+ 6
Shabista Imam , yes we can, but its YOUR task to do this by yourself. Do a try, if you get stuck somewhere come back and post your attempt here so that we can help you. Thanks!
4th Nov 2020, 3:03 PM
Lothar
Lothar - avatar
+ 1
I have attempted many times by class and extend class but wants in more efficient way
4th Nov 2020, 3:24 PM
Shabista Imam
Shabista Imam - avatar
0
Shabista Imam if you show your attempt then other understand what you looking and try to share their ways..
4th Nov 2020, 8:28 PM
Jayakrishna 🇮🇳