title: C++ class methods
body: <p>I am learning C++ and I have a question.</p>
  
  <p>I made a class in Netbeans, which made Rectangle.h and Rectangle.cpp. I am trying to add methods that output the Area and Perimeter of the rectangle's <code>l</code> and <code>w</code> variables. I don't know how to create methods in a class and how to incorporate them in the Rectangle.h file. </p>
  
  <p>Here's what I'm trying to do:</p>
  
  <pre><code>Rectangle rct;
  rct.l = 7;
  rct.w = 4;
  cout &lt;&lt; "Area is " &lt;&lt; rct.Area() &lt;&lt; endl;
  cout &lt;&lt; "Perim is " &lt;&lt; rct.Perim() &lt;&lt; endl;
  </code></pre>
  
  <p>Can someone explain how to do this? I'm so confused.</p>
  
  <p>Thanks, </p>
  
  <p>Lucas</p>