class & object
class & object
#include <iostream>
// create a class
class Room {
public:
double length;
double breadth;
double height;
double calculate_area() {
double calculate_volume() {
};
int main() {
Room room1;
room1.length = 42.5;
room1.breadth = 30.8;
room1.height = 19.2;
return 0;
}
// Program to illustrate the working of
#include <iostream>
// create a class
class Room {
public:
double length;
double breadth;
double height;
double calculate_area() {
double calculate_volume() {
};
int main() {
Room room1;
room1.length = 42.5;
room1.breadth = 30.8;
room1.height = 19.2;
return 0;