<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Java Constructors :: CC 210 Textbook</title>
    <link>https://textbooks.cs.ksu.edu/cc210/12-classes/05-java/07-constructors/video/index.html</link>
    <description>Resources Slides Video Script Another powerful feature of writing our own classes is the ability to have code automatically execute anytime a new object is created based on the class. This is done through a special method called a “constructor”. Let’s see how we can do that in Java.&#xA;First, we’ll update the class UML diagram to include a couple of constructors. Constructors typically look like methods, but they have a couple of special features. First, the name of the constructor methods is the same as the name of the class. Also, those methods don’t specify a return type, since the constructor itself doesn’t actually return a value.</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 27 Jun 2024 15:52:41 -0500</lastBuildDate>
    <atom:link href="https://textbooks.cs.ksu.edu/cc210/12-classes/05-java/07-constructors/video/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>