struct c++

C++
struct product {
  int weight;
  double price;
} ;

product apple;
product banana, melon;
Source

Also in C++: