tag:blogger.com,1999:blog-8110657754519829885.post104378636529027980..comments2023-07-10T01:54:55.230-07:00Comments on GoLang Tutorials: Inheritance and subclassing in Go - or its near likenessSathish VJhttp://www.blogger.com/profile/15718521031646368740noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-8110657754519829885.post-27052263112144437902017-12-20T02:41:57.904-08:002017-12-20T02:41:57.904-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/04511656115179022018noreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-92168873259769489712017-09-14T03:07:06.653-07:002017-09-14T03:07:06.653-07:00Nice post about Inheritance in java .
thanks you ...Nice post about <a href="https://javatutorial95.blogspot.in/2017/02/java-inheritance.html" rel="nofollow"> Inheritance in java </a>.<br />thanks you very much for this useful post.anurag singhhttps://www.blogger.com/profile/10791143842435956976noreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-27041681053290765582016-10-02T13:38:08.221-07:002016-10-02T13:38:08.221-07:00Nice article, was wondering how go implements inhe...Nice article, was wondering how go implements inheritance(extends like in Java).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-6555826714262373612014-09-11T01:01:59.634-07:002014-09-11T01:01:59.634-07:00Go resolves pointers and instances automatically w...Go resolves pointers and instances automatically when it comes to member access and function calling. So if struct A has a member function F, and 'a' is an instance of it, then a.F(); p:=&a; p.F(); are ok.<br /><br />For types (like variables or struct member variables) you will need to explicitly ensure that you use the & and * appropriately to get the correct type. Sathish VJhttps://www.blogger.com/profile/15718521031646368740noreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-34073810147058217652014-09-10T22:47:26.505-07:002014-09-10T22:47:26.505-07:00How would this work when the functions are attache...How would this work when the functions are attached to pointers of the types instead of the types themselves? Would I need to instantiate it like `&AstonMartin{&Car{4}}` ?Anonymoushttps://www.blogger.com/profile/14121326318332745916noreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-36297156885112949122013-07-31T12:19:13.058-07:002013-07-31T12:19:13.058-07:00Yes, there is. Please check the post titled "...Yes, there is. Please check the post titled "Interfaces in Go" in the table of contents. (http://golangtutorials.blogspot.com/2011/06/interfaces-in-go.html)Sathish VJhttps://www.blogger.com/profile/15718521031646368740noreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-48827946397417499692013-07-31T12:15:18.496-07:002013-07-31T12:15:18.496-07:00Is there some way to pass a Ferrari to something t...Is there some way to pass a Ferrari to something that is expecting a Car as an argument? I haven't figured out a syntax for that yet!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-27055906212568089342013-01-23T14:01:06.421-08:002013-01-23T14:01:06.421-08:00This comment has been removed by the author.DAGGIhttps://www.blogger.com/profile/16136919128808567023noreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-90315742958292679902012-12-11T22:32:34.298-08:002012-12-11T22:32:34.298-08:00Thanks for this writeup... super helpful!Thanks for this writeup... super helpful!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-38640956102339314142012-06-28T06:52:35.036-07:002012-06-28T06:52:35.036-07:00very good ! I'm very pleased to discover how t...very good ! I'm very pleased to discover how to make Inheritance in GO :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8110657754519829885.post-2974104362733553772011-10-03T10:44:40.600-07:002011-10-03T10:44:40.600-07:00Hi Bond, James Bond!Hi Bond, James Bond!Tobbnoreply@blogger.com