export class Product { constructor ( public id , public title , public price , public description ) { } } export class ProductService { getProduct ( ) { return new Product ( 0 , "iPhone 7" , 249.99 , "The latest iPhone, 7-inch screen" ) ; } }