{"id":554,"date":"2011-06-13T08:25:51","date_gmt":"2011-06-13T16:25:51","guid":{"rendered":"http:\/\/www.andreanolanusse.com\/en\/?p=554"},"modified":"2011-07-31T23:33:29","modified_gmt":"2011-08-01T07:33:29","slug":"delphi-developer-certification-tips-2","status":"publish","type":"post","link":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/","title":{"rendered":"Delphi Developer Certification Tips #2"},"content":{"rendered":"<p>Here I am with the second tip for the Delphi Developer Certification and it&#8217;s about constructor.<\/p>\n<p>Every Delphi Developer should know that every single class has a Constructor method, which is used to create the object. The RAD Studio documentation describe the\u00a0<a href=\"http:\/\/docwiki.embarcadero.com\/RADStudio\/en\/Methods#Constructors\" target=\"_blank\">Constructor<\/a> as:<\/p>\n<blockquote><p>A constructor is a special method that creates and initializes instance objects. The declaration of a constructor looks like a procedure declaration, but it begins with the word\u00a0<strong>constructor<\/strong>.<\/p><\/blockquote>\n<p>It is conventional to call the constructor Create, a class can have more than one constructor, but most of the time we just see one. Since what define the class constructor is the keyword constructor, you can call it whatever you want. There are many situations where you will need multiple constructors, in general we don&#8217;t use multiples names, but the capability to give different names for the constructor could help to have a better\u00a0understating\u00a0of the code. The following example has 7 different constructors using three different names Create, New and Update:<\/p>\n<pre class=\"brush: delphi\">  TMyClass = class\r\n  public\r\n    name   : string;\r\n    constructor Create; overload;   \/\/ This constructor uses defaults\r\n    constructor Create(name : string); overload;\r\n    constructor Create(name : string; age : Integer); overload;\r\n    constructor New(name : string);overload;\r\n    constructor New(name : string; age : Integer);overload;\r\n   constructor Update(name : string);overload;\r\n   constructor Update(name : string; age : Integer);overload;<\/pre>\n<pre class=\"brush: delphi\">  end;<\/pre>\n<pre class=\"brush: delphi\">The TMyClass could be instantiated using one of the following constructor:\r\n\r\n  TMyClass.Create;\r\n  TMyClass.Create('Mike');\r\n  TMyClass.Create('Mike', 50);\r\n  TMyClass.New('Mike');\r\n  TMyClass.New('Mike', 50);\r\n  TMyClass.Update('Mike');\r\n  TMyClass.Update('Mike', 30);<\/pre>\n<p>There are more to learn about Constructors and I suggest the following links:<\/p>\n<ul>\n<li><a href=\"http:\/\/docwiki.embarcadero.com\/RADStudio\/en\/Methods\" target=\"_blank\">RAD Studio Documentation Method Topic<\/a><\/li>\n<li><a href=\"http:\/\/www.delphibasics.co.uk\/RTL.asp?Name=Constructor\" target=\"_blank\">Delphi Basic &#8211; Constructor<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Here I am with the second tip for the Delphi Developer Certification and it&#8217;s about constructor. Every Delphi Developer should know that every single class has a Constructor method, which is used to create the object. The RAD Studio documentation describe the\u00a0Constructor as: A constructor is a special method that creates and initializes instance objects. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_s2mail":"","footnotes":""},"categories":[10],"tags":[70,90],"class_list":["post-554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-delphi","tag-certification","tag-delphi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Delphi Developer Certification Tips #2 | Andreano Lanusse | Technology and Software Development<\/title>\n<meta name=\"description\" content=\"Here I am with the second tip for the Delphi Developer Certification and it&#039;s about constructor. Every Delphi Developer should know that every single\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Delphi Developer Certification Tips #2 | Andreano Lanusse | Technology and Software Development\" \/>\n<meta property=\"og:description\" content=\"Here I am with the second tip for the Delphi Developer Certification and it&#039;s about constructor. Every Delphi Developer should know that every single\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Andreano Lanusse | Technology and Software Development\" \/>\n<meta property=\"article:published_time\" content=\"2011-06-13T16:25:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-08-01T07:33:29+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"440\" \/>\n\t<meta property=\"og:image:height\" content=\"250\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Andreano Lanusse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andreano Lanusse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\"},\"author\":{\"name\":\"Andreano Lanusse\",\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b\"},\"headline\":\"Delphi Developer Certification Tips #2\",\"datePublished\":\"2011-06-13T16:25:51+00:00\",\"dateModified\":\"2011-08-01T07:33:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\"},\"wordCount\":194,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b\"},\"image\":{\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png\",\"keywords\":[\"Certification\",\"Delphi\"],\"articleSection\":[\"Delphi\"],\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\",\"url\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\",\"name\":\"Delphi Developer Certification Tips #2 | Andreano Lanusse | Technology and Software Development\",\"isPartOf\":{\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png\",\"datePublished\":\"2011-06-13T16:25:51+00:00\",\"dateModified\":\"2011-08-01T07:33:29+00:00\",\"description\":\"Here I am with the second tip for the Delphi Developer Certification and it's about constructor. Every Delphi Developer should know that every single\",\"breadcrumb\":{\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage\",\"url\":\"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png\",\"contentUrl\":\"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png\",\"width\":440,\"height\":250},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.andreanolanusse.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Delphi Developer Certification Tips #2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#website\",\"url\":\"https:\/\/www.andreanolanusse.com\/en\/\",\"name\":\"Andreano Lanusse | Technology and Software Development\",\"description\":\"Where Andreano Lanusse talk about technology, software development, programming techniques, databases, games and more through articles, tutorials and videos\",\"publisher\":{\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.andreanolanusse.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b\",\"name\":\"Andreano Lanusse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/49ab23ef70c249c0cb3469f14ef07edc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/49ab23ef70c249c0cb3469f14ef07edc?s=96&d=mm&r=g\",\"caption\":\"Andreano Lanusse\"},\"logo\":{\"@id\":\"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/image\/\"},\"description\":\"Andreano Lanusse is an expert and enthusiastic on software development industry, at Embarcadero he is focused on helping to make sure the products being developed meet the expectations of Embarcadero's customers, as well as defining market strategies for Latin America. Today as Latin Lead Evangelist he spends great deal of time in developer conferences, tradeshows, user group, and visiting customers throughout Latin America. Before Embarcadero, he worked 13 years for Borland, Andreano has worked as Support Coordinator, Engineer, Product Manager, including Product Line Sales Manager, where was responsible to manage the relationship with Brazil developer community, also has worked as Principal Consultant for Borland Consulting Services on the development and management of critical applications. He previously served as Chief Architect for USS Solu\u00e7\u00f5es Gerenciadas (now USS Tempo). Andreano holds a bachelor's degree in Business Administration Marketing Emphasis from Sumare Institute, MBA in Project Management from FGV, certification in Microsoft products, all Borland ALM products, and all CodeGear product line.\",\"sameAs\":[\"http:\/\/www.andreanolanusse.com\",\"https:\/\/x.com\/andreanolanusse\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Delphi Developer Certification Tips #2 | Andreano Lanusse | Technology and Software Development","description":"Here I am with the second tip for the Delphi Developer Certification and it's about constructor. Every Delphi Developer should know that every single","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/","og_locale":"en_US","og_type":"article","og_title":"Delphi Developer Certification Tips #2 | Andreano Lanusse | Technology and Software Development","og_description":"Here I am with the second tip for the Delphi Developer Certification and it's about constructor. Every Delphi Developer should know that every single","og_url":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/","og_site_name":"Andreano Lanusse | Technology and Software Development","article_published_time":"2011-06-13T16:25:51+00:00","article_modified_time":"2011-08-01T07:33:29+00:00","og_image":[{"width":440,"height":250,"url":"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png","type":"image\/png"}],"author":"Andreano Lanusse","twitter_misc":{"Written by":"Andreano Lanusse","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#article","isPartOf":{"@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/"},"author":{"name":"Andreano Lanusse","@id":"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b"},"headline":"Delphi Developer Certification Tips #2","datePublished":"2011-06-13T16:25:51+00:00","dateModified":"2011-08-01T07:33:29+00:00","mainEntityOfPage":{"@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/"},"wordCount":194,"commentCount":4,"publisher":{"@id":"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b"},"image":{"@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage"},"thumbnailUrl":"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png","keywords":["Certification","Delphi"],"articleSection":["Delphi"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/","url":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/","name":"Delphi Developer Certification Tips #2 | Andreano Lanusse | Technology and Software Development","isPartOf":{"@id":"https:\/\/www.andreanolanusse.com\/en\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage"},"image":{"@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage"},"thumbnailUrl":"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png","datePublished":"2011-06-13T16:25:51+00:00","dateModified":"2011-08-01T07:33:29+00:00","description":"Here I am with the second tip for the Delphi Developer Certification and it's about constructor. Every Delphi Developer should know that every single","breadcrumb":{"@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#primaryimage","url":"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png","contentUrl":"http:\/\/www.andreanolanusse.com\/en\/wp-content\/uploads\/2011\/06\/Delphi_Certified_Developer_Logo2.png","width":440,"height":250},{"@type":"BreadcrumbList","@id":"http:\/\/www.andreanolanusse.com\/en\/delphi-developer-certification-tips-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.andreanolanusse.com\/en\/"},{"@type":"ListItem","position":2,"name":"Delphi Developer Certification Tips #2"}]},{"@type":"WebSite","@id":"https:\/\/www.andreanolanusse.com\/en\/#website","url":"https:\/\/www.andreanolanusse.com\/en\/","name":"Andreano Lanusse | Technology and Software Development","description":"Where Andreano Lanusse talk about technology, software development, programming techniques, databases, games and more through articles, tutorials and videos","publisher":{"@id":"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.andreanolanusse.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":["Person","Organization"],"@id":"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/b51fdf99c01fcd6ae0a5ae894c23837b","name":"Andreano Lanusse","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/49ab23ef70c249c0cb3469f14ef07edc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/49ab23ef70c249c0cb3469f14ef07edc?s=96&d=mm&r=g","caption":"Andreano Lanusse"},"logo":{"@id":"https:\/\/www.andreanolanusse.com\/en\/#\/schema\/person\/image\/"},"description":"Andreano Lanusse is an expert and enthusiastic on software development industry, at Embarcadero he is focused on helping to make sure the products being developed meet the expectations of Embarcadero's customers, as well as defining market strategies for Latin America. Today as Latin Lead Evangelist he spends great deal of time in developer conferences, tradeshows, user group, and visiting customers throughout Latin America. Before Embarcadero, he worked 13 years for Borland, Andreano has worked as Support Coordinator, Engineer, Product Manager, including Product Line Sales Manager, where was responsible to manage the relationship with Brazil developer community, also has worked as Principal Consultant for Borland Consulting Services on the development and management of critical applications. He previously served as Chief Architect for USS Solu\u00e7\u00f5es Gerenciadas (now USS Tempo). Andreano holds a bachelor's degree in Business Administration Marketing Emphasis from Sumare Institute, MBA in Project Management from FGV, certification in Microsoft products, all Borland ALM products, and all CodeGear product line.","sameAs":["http:\/\/www.andreanolanusse.com","https:\/\/x.com\/andreanolanusse"]}]}},"_links":{"self":[{"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/posts\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":0,"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/media\/553"}],"wp:attachment":[{"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.andreanolanusse.com\/en\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}