12 lines
		
	
	
		
			165 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			165 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								// #docregion
							 | 
						||
| 
								 | 
							
								export class Hero {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  constructor(
							 | 
						||
| 
								 | 
							
								    public id: number,
							 | 
						||
| 
								 | 
							
								    public name: string,
							 | 
						||
| 
								 | 
							
								    public power: string,
							 | 
						||
| 
								 | 
							
								    public alterEgo?: string
							 | 
						||
| 
								 | 
							
								  ) {  }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 |