Sign in
Log inSign up
AbulAsar S.

59 likes

·

1.3K reads

5 comments

Iaam Onkara
Iaam Onkara
Sep 26, 2020

so in your example above both types of Calculator will be aliased as Calculator hence the only Calculator you will have access to thru Alias will be Logrithmic one.

Better to do

alias Mathematics.Calculator
alias Mathematics.Logrithmic.Calculator, as: LogCalc
2
·
·1 reply
AbulAsar S.
AbulAsar S.
Author
·Sep 26, 2020

Ah, thanks for pointing. I randomly added that example. I'll change it. Thanks

·
Muhammad Ibrahim Shaikh
Muhammad Ibrahim Shaikh
Sep 26, 2020

Wow! This a very well written article on how to use alias. Would you mind if I copy it or embed it in my blog?

1
·
Shad Mirza
Shad Mirza
Sep 28, 2020

Very well written AbulAsar Sayyad

·
·1 reply
AbulAsar S.
AbulAsar S.
Author
·Sep 28, 2020

Thank you Mohd Shad Mirza :)

·