EP 2.10 - Angular / ES6 & TypeScript / Classes & Interface

preview_player
Показать описание


In ES6 we now have a new way of writing object-oriented code with the class syntax.
We can inherit methods and properties of one class into another by using the extends keyword.

Under the hood, we are still using prototype-based inheritance but the syntax is easier to understand and more familiar for developers who are coming from other languages.

TypeScript adds some extra functionality on-top of ES6 classes such as access modifiers and interfaces
Рекомендации по теме
Комментарии
Автор

"You truly deserve more views" I really agree about that, thank you very much again.

bsherrh
Автор

hello Thanks you so much for your deep explanation. I want to know how to set object to default value state? means suppose... here asim is set value to constructor function using this line... " let asim = new Person("Asim", "Hussain")" and how can we say in member function calling " asim.setDefault() " set all property values back to default state..

GaurangDhorda
visit shbcf.ru