<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>OOP 🤟🏽 by Thanuesh</title>
      <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2023-11-07 01:03:16 UTC</pubDate>
      <lastBuildDate>2023-11-07 15:57:16 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Thanuesh</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778914493</link>
         <description><![CDATA[<p>Coding for triangle</p><p><br></p><p>class Shape {</p><p>    // Common properties and methods for all shapes</p><p>    protected double area;</p><p>    public double getArea() {</p><p>        return area;</p><p>    }</p><p>}</p><p>class Triangle extends Shape {</p><p>    private double base;</p><p>    private double height;</p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>        calculateArea();</p><p>    }</p><p>    private void calculateArea() {</p><p>        area = 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>public class TriangleDemo {</p><p>    public static void main(String[] args) {</p><p>        Triangle triangle = new Triangle(5.0, 8.0);</p><p>        System.out.println("Triangle Area: " + triangle.getArea());</p><p>    }</p><p>}</p><p><br></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2147878782/a0ab2b85ed744927aaf007c0504e828d/Screenshot_2023_11_07_092132.png" />
         <pubDate>2023-11-07 01:28:17 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778914493</guid>
      </item>
      <item>
         <title>Pavinness</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778918170</link>
         <description><![CDATA[<p>Coding for area of triangle</p><p><br/></p><p>// Superclass</p><p>class Shape {</p><p>    double area;</p><p>    // Method to calculate area (will be overridden by subclasses)</p><p>    void calculateArea() {</p><p>        // This is a placeholder method that will be overridden by subclasses</p><p>    }</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>    double base;</p><p>    double height;</p><p>    // Constructor for Triangle</p><p>    Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    // Override the method to calculate area for a triangle</p><p>    void calculateArea() {</p><p>        area = 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>class TriangleDemo {</p><p>    public static void main(String args[]) {</p><p>        Triangle obj1 = new Triangle(10, 5);</p><p>        obj1.calculateArea();</p><p>        System.out.println("Area of the triangle: " + obj1.area);</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196295438/c31efca97a6445db6bd2a5cc1667f4c6/Screenshot_2023_11_07_091607.png" />
         <pubDate>2023-11-07 01:30:34 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778918170</guid>
      </item>
      <item>
         <title>TANUSHA</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778924228</link>
         <description><![CDATA[<p>// Superclass</p><p>class Shape {</p><p>    double area;</p><p>    // Method to calculate area (will be overridden by subclasses)</p><p>    void calculateArea() {</p><p>        // This is a placeholder method that will be overridden by subclasses</p><p>    }</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>    double base;</p><p>    double height;</p><p>    // Constructor for Triangle</p><p>    Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    // Override the method to calculate area for a triangle</p><p>    void calculateArea() {</p><p>        area = 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>class TriangleDemo {</p><p>    public static void main(String args[]) {</p><p>        Triangle obj1 = new Triangle(10, 5);</p><p>        obj1.calculateArea();</p><p>        System.out.println("Area of the triangle: " + obj1.area);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;}</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2208067120/8c625c75cdb46e3aa8c4f81395ba7f81/Screenshot__235_.png" />
         <pubDate>2023-11-07 01:35:00 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778924228</guid>
      </item>
      <item>
         <title>HIMAKARTINI</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778924897</link>
         <description><![CDATA[<p>// This is the superclass representing geometric shapes</p><p>class Shape {</p><p>    double area;</p><p>    // This method is a placeholder for calculating the area and will be overridden by subclasses</p><p>    void calculateArea() {</p><p>        // This method will be replaced by specific implementations in subclasses</p><p>    }</p><p>}</p><p>// This is a subclass of Shape, representing a triangle</p><p>class Triangle extends Shape {</p><p>    double base;</p><p>    double height;</p><p>    // Constructor for creating a Triangle object with given base and height</p><p>    Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    // Override the calculateArea method to calculate the area of a triangle</p><p>    void calculateArea() {</p><p>        area = 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>// This class demonstrates the use of the Triangle class</p><p>class TriangleDemo {</p><p>    public static void main(String args[]) {</p><p>        // Create a Triangle object with a base of 10 and a height of 5</p><p>        Triangle obj1 = new Triangle(10, 5);</p><p>        </p><p>        // Calculate the area of the triangle</p><p>        obj1.calculateArea();</p><p>        </p><p>        // Display the calculated area of the triangle</p><p>        System.out.println("Area of the triangle: " + obj1.area);</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196288174/6b0a7116b5d75095bd1dbc6b41d92870/image.png" />
         <pubDate>2023-11-07 01:35:27 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778924897</guid>
      </item>
      <item>
         <title>LEESHA PRIYA</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778926155</link>
         <description><![CDATA[<p><strong>Area Of Triangle</strong></p><p>// super class</p><p>class areaTriangle {</p><p>    public double calculateArea() {</p><p>        return 0.0;</p><p>    }</p><p>}</p><p>// sub-class</p><p>class Triangle extends areaTriangle {</p><p>     double base;</p><p>     double height;</p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    public double calculateArea() {</p><p>        return 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>class TrangleDemo {</p><p>    public static void main(String[] args) {</p><p>        // Create a Triangle object</p><p>        Triangle triangle = new Triangle(25, 20);</p><p>        // Calculate and print the area of the triangle</p><p>        double area = triangle.calculateArea();</p><p>        System.out.println("Area of the triangle: " + area);</p><p>    }</p><p>}</p><p><br></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1821372085/dfc3d4fe3385306ab5e042c0827b6773/image.png" />
         <pubDate>2023-11-07 01:36:28 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778926155</guid>
      </item>
      <item>
         <title>KIIVENESH</title>
         <author>kiive280304</author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778928634</link>
         <description><![CDATA[<p>// Superclass</p><p>class Shape {</p><p>    double area;</p><p>    // Method to calculate area (will be overridden by subclasses)</p><p>    void calculateArea() {</p><p>        // This is a placeholder method that will be overridden by subclasses</p><p>    }</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>    double base;</p><p>    double height;</p><p>    // Constructor for Triangle</p><p>    Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    // Override the method to calculate area for a triangle</p><p>    void calculateArea() {</p><p>        area = 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>class TriangleDemo {</p><p>    public static void main(String args[]) {</p><p>        Triangle obj1 = new Triangle(10, 5);</p><p>        obj1.calculateArea();</p><p>        System.out.println("Area of the triangle: " + obj1.area);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;}</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1897251169/bccc2bc7ab00ee1e9936e42b83324de4/image.png" />
         <pubDate>2023-11-07 01:38:19 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778928634</guid>
      </item>
      <item>
         <title>shafiqah</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778928640</link>
         <description><![CDATA[<p>b)class Shape {</p><p>    public double getArea() {</p><p>        return 0; // Default implementation, to be overridden by subclasses</p><p>    }</p><p>}</p><p>class Triangle extends Shape {</p><p>    private double base;</p><p>    private double height;</p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    @Override</p><p>    public double getArea() {</p><p>        return 0.5 <em> base </em> height; // Calculate the area of the triangle</p><p>    }</p><p>}</p><p>public class TriangleDemo {</p><p>    public static void main(String[] args) {</p><p>        Triangle triangle = new Triangle(5.0, 8.0); // Example values for base and height</p><p>        double area = triangle.getArea();</p><p>        System.out.println("Triangle Area: " + area);</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196272861/1cdeadb780da72f508765a921df31550/Screenshot__6_.png" />
         <pubDate>2023-11-07 01:38:19 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778928640</guid>
      </item>
      <item>
         <title>ariana</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778929162</link>
         <description><![CDATA[<p>b)class Shape {</p><p>    public double getArea() {</p><p>        return 0; // Default implementation, to be overridden by subclasses</p><p>    }</p><p>}</p><p>class Triangle extends Shape {</p><p>    private double base;</p><p>    private double height;</p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    @Override</p><p>    public double getArea() {</p><p>        return 0.5 <em> base </em> height; // Calculate the area of the triangle</p><p>    }</p><p>}</p><p>public class TriangleDemo {</p><p>    public static void main(String[] args) {</p><p>        Triangle triangle = new Triangle(5.0, 8.0); // Example values for base and height</p><p>        double area = triangle.getArea();</p><p>        System.out.println("Triangle Area: " + area);</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196272861/757b96184ea21d07269300bde803d9d9/Screenshot__6_.png" />
         <pubDate>2023-11-07 01:38:42 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778929162</guid>
      </item>
      <item>
         <title>safa</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778930575</link>
         <description><![CDATA[<p>b)class Shape {</p><p>    public double getArea() {</p><p>        return 0; // Default implementation, to be overridden by subclasses</p><p>    }</p><p>}</p><p>class Triangle extends Shape {</p><p>    private double base;</p><p>    private double height;</p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    @Override</p><p>    public double getArea() {</p><p>        return 0.5 <em> base </em> height; // Calculate the area of the triangle</p><p>    }</p><p>}</p><p>public class TriangleDemo {</p><p>    public static void main(String[] args) {</p><p>        Triangle triangle = new Triangle(5.0, 8.0); // Example values for base and height</p><p>        double area = triangle.getArea();</p><p>        System.out.println("Triangle Area: " + area);</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196272861/0bc53fc5fb134b6fae9fc4d9578c5f42/Screenshot__6_.png" />
         <pubDate>2023-11-07 01:39:43 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778930575</guid>
      </item>
      <item>
         <title>SARRVIN RAJ KUPUSAMY</title>
         <author>sarrvinrajkupusamy</author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778936108</link>
         <description><![CDATA[<p>// Superclass</p><p>class Shape {</p><p>double area;</p><p>// Method to calculate area (will be overridden by subclasses)</p><p>void calculateArea() {</p><p>// This is a placeholder method that will be overridden by subclasses</p><p>}</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>double base;</p><p>double height;</p><p>// Constructor for Triangle</p><p>Triangle(double base, double height) {</p><p>this.base = base;</p><p>this.height = height;</p><p>}</p><p>// Override the method to calculate area for a triangle</p><p>void calculateArea() {</p><p>area = 0.5 base height;</p><p>}</p><p>}</p><p>class TriangleDemo {</p><p>public static void main(String args[]) {</p><p>Triangle obj1 = new Triangle(10, 5);</p><p>obj1.calculateArea();</p><p>System.out.println("Area of the triangle: " + obj1.area);</p><p>    }</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1897205788/96ca9e28f5b6865a589c021216937a89/image.png" />
         <pubDate>2023-11-07 01:43:54 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778936108</guid>
      </item>
      <item>
         <title>NANTHINI SIVANANDAN </title>
         <author>Nanthini_Sivanandan</author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778936388</link>
         <description><![CDATA[<p>// Superclass</p><p>class Shape {</p><p>double area;</p><p>// Method to calculate area (will be overridden by subclasses)</p><p>void calculateArea() {</p><p>// This is a placeholder method that will be overridden by subclasses</p><p>}</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>double base;</p><p>double height;</p><p>// Constructor for Triangle</p><p>Triangle(double base, double height) {</p><p>this.base = base;</p><p>this.height = height;</p><p>}</p><p>// Override the method to calculate area for a triangle</p><p>void calculateArea() {</p><p>area = 0.5 base height;</p><p>}</p><p>}</p><p>class TriangleDemo {</p><p>public static void main(String args[]) {</p><p>Triangle obj1 = new Triangle(10, 5);</p><p>obj1.calculateArea();</p><p>System.out.println("Area of the triangle: " + obj1.area);</p><p>    }</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1956470168/aab365738c96210aff8218bfc949a496/image.png" />
         <pubDate>2023-11-07 01:44:07 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778936388</guid>
      </item>
      <item>
         <title>GITHNI</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778936775</link>
         <description><![CDATA[<p><mark>AREA OF TRIANGLE</mark></p><p><br></p><p>abstract class areaTriangle {</p><p>    public abstract double calculateArea();</p><p>}</p><p>class Triangle extends areaTriangle {</p><p>    private double base;</p><p>    private double height;</p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    public double calculateArea() {</p><p>        return 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>class TriangleDemo {</p><p>    public static void main(String[] args) {</p><p>        Triangle triangle = new Triangle(25, 20);</p><p>        double area = triangle.calculateArea();</p><p>        System.out.println("Area of the triangle: " + area);</p><p>    }</p><p>}</p><p><br></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2208058420/6e9ef3177bd36713ff6f470946bc58ad/image.png" />
         <pubDate>2023-11-07 01:44:23 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778936775</guid>
      </item>
      <item>
         <title>Sonia  </title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778937217</link>
         <description><![CDATA[<p>// Superclass</p><p>class Shape {</p><p>    double area;</p><p>    // Method to calculate area (will be overridden by subclasses)</p><p>    void calculateArea() {</p><p>        // This is a placeholder method that will be overridden by subclasses</p><p>    }</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>    double base;</p><p>    double height;</p><p>    // Constructor for Triangle</p><p>    Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>    // Override the method to calculate area for a triangle</p><p>    void calculateArea() {</p><p>        area = 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p>class TriangleDemo {</p><p>    public static void main(String args[]) {</p><p>        Triangle obj1 = new Triangle(10, 5);</p><p>        obj1.calculateArea();</p><p>        System.out.println("Area of the triangle: " + obj1.area);</p><p>    }</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196272497/cffa62d051a58983a928083bb0c51235/image.png" />
         <pubDate>2023-11-07 01:44:44 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778937217</guid>
      </item>
      <item>
         <title>Zhafran </title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778939136</link>
         <description><![CDATA[<p><br></p><p>class Shape {</p><p>// Common properties and methods for all shapes</p><p>protected double area;</p><p>public double getArea() {</p><p>return area;</p><p>}</p><p>}</p><p>class Triangle extends Shape {</p><p>private double base;</p><p>private double height;</p><p>public Triangle(double base, double height) {</p><p>this.base = base;</p><p>this.height = height;</p><p>calculateArea();</p><p>}</p><p>private void calculateArea() {</p><p>area = 0.5 <em>base </em>height;</p><p>}</p><p>}</p><p>public class TriangleDemo {</p><p>public static void main(String[] args) {</p><p>Triangle triangle = new Triangle(5.0, 8.0);</p><p>System.out.println("Triangle Area: " + triangle.getArea());</p><p>}</p><p>}</p><p><br></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2208078408/1d9ac7fe5de436e0df1d175b0f8aa728/IMG_6401.jpeg" />
         <pubDate>2023-11-07 01:46:11 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778939136</guid>
      </item>
      <item>
         <title>KIRSHA </title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778946717</link>
         <description><![CDATA[<p><strong>Area Of Triangle</strong></p><p>// super class</p><p>class areaTriangle {</p><p>public double calculateArea() {</p><p>return 0.0;</p><p>}</p><p>}</p><p>// sub-class</p><p>class Triangle extends areaTriangle {</p><p>double base;</p><p>double height;</p><p>public Triangle(double base, double height) {</p><p>this.base = base;</p><p>this.height = height;</p><p>}</p><p>public double calculateArea() {</p><p>return 0.5 <em>base </em>height;</p><p>}</p><p>}</p><p>class TrangleDemo {</p><p>public static void main(String[] args) {</p><p>// Create a Triangle object</p><p>Triangle triangle = new Triangle(25, 20);</p><p>// Calculate and print the area of the triangle</p><p>double area = triangle.calculateArea();</p><p>System.out.println("Area of the triangle: " + area);</p><p>}</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1888872554/e1717f06562a3b275756870d5dfe019a/Screenshot_2023_11_07_094734.png" />
         <pubDate>2023-11-07 01:51:00 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778946717</guid>
      </item>
      <item>
         <title>Faris</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778971299</link>
         <description><![CDATA[<p>// Superclass</p><p>class Shape {</p><p>double area;</p><p>// Method to calculate area (will be overridden by subclasses)</p><p>void calculateArea() {</p><p>// This is a placeholder method that will be overridden by subclasses</p><p>}</p><p>}</p><p>// Subclass (inherits from Shape)</p><p>class Triangle extends Shape {</p><p>double base;</p><p>double height;</p><p>// Constructor for Triangle</p><p>Triangle(double base, double height) {</p><p>this.base = base;</p><p>this.height = height;</p><p>}</p><p>// Override the method to calculate area for a triangle</p><p>void calculateArea() {</p><p>area = 0.5 base height;</p><p>}</p><p>}</p><p>class TriangleDemo {</p><p>public static void main(String args[]) {</p><p>Triangle obj1 = new Triangle(10, 5);</p><p>obj1.calculateArea();</p><p>System.out.println("Area of the triangle: " + obj1.area);</p><p>}</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196360630/5ff191111bfd2c2e9b04311dfd877173/image.png" />
         <pubDate>2023-11-07 02:08:10 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778971299</guid>
      </item>
      <item>
         <title>Heviinash </title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778980089</link>
         <description><![CDATA[<p><strong>Area of Triangle </strong></p><p><br/></p><p>class Triangle {</p><p>    float height;</p><p>    float base;</p><p>}</p><p>class Area extends Triangle {</p><p>    float area;</p><p>    // Method to calculate area of the triangle</p><p>    void calculateArea() {</p><p>        area = height <em> base </em> 0.5;</p><p>    }</p><p>}</p><p>public class Main {</p><p>    public static void main(String[] args) {</p><p>        // Creating an object of the Area class</p><p>        Area triangleArea = new Area();</p><p>        // Setting height and base values</p><p>        triangleArea.height = 5;</p><p>        triangleArea.base = 10;</p><p>        // Calculating the area</p><p>        triangleArea.calculateArea();</p><p>        // Printing the calculated area</p><p>        System.out.println("Area of the triangle: " + triangleArea.area);</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196108496/c05dc2268bae0137c13f9f608c0a9c16/WhatsApp_Image_2023_11_07_at_09_35_23_baebb3d5.jpg" />
         <pubDate>2023-11-07 02:13:40 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778980089</guid>
      </item>
      <item>
         <title>Najwa </title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778989943</link>
         <description><![CDATA[<ol><li><p><strong>Sample 4 output:</strong></p><pre><code>Name = Sultana</code></pre><pre><code>Age = 17</code></pre><pre><code>Mark 1 = 67</code></pre><pre><code>Mark 2 = 87</code></pre><pre><code>mark 3 = 97</code></pre></li><li><p><strong>Area of triangle inheritance program:</strong></p><pre><code>//superclass
class Shape {
	double area;
}

//subclass
class Triangle extends Shape {
	double base;
	double height;

	//constructor
	public Triangle(double base, double height) {
		this.base = base;
		this.height = height;
	}

	void calcArea() {
		area = 0.5 * base * height;
}
}

public class AreaTriangle {
	public static void main (String[] args) {
		double base = 5;
		double height = 12;

		Triangle triangle = new Triangle(base, height);

		triangle.calcArea(); //call calcArea method to calculate area
		
		System.out.println("Area of triangle: " + triangle.area);
	}
}</code></pre><p><br></p><p><br></p></li></ol>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-07 02:19:36 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2778989943</guid>
      </item>
      <item>
         <title>AISYA SOFEA</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779034761</link>
         <description><![CDATA[<p><strong>AREA OF TRIANGLE</strong></p><p><br></p><p>//superclass</p><p>class Shape {</p><p>	double area;</p><p>}</p><p>//subclass</p><p>class Triangle extends Shape {</p><p>	double width;</p><p>	double height;</p><p>	//constructor</p><p>	public Triangle(double width, double height) {</p><p>		this.width = width;</p><p>		this.height = height;</p><p>	}</p><p>	void calcArea() {</p><p>		area = 0.5 <em> width </em> height;</p><p>}</p><p>}</p><p>class AreaTriangle {</p><p>	public static void main (String[] args) {</p><p>		double width = 7;</p><p>		double height = 14;</p><p>		Triangle triangle = new Triangle(width, height);</p><p>		triangle.calcArea(); //call calcArea method to calculate area</p><p>		</p><p>		System.out.println("Area of triangle: " + triangle.area);</p><p>	}</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2196260450/d3bc7566288ee314e32a776552b98129/image.png" />
         <pubDate>2023-11-07 02:48:08 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779034761</guid>
      </item>
      <item>
         <title>Hazlysha</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779035734</link>
         <description><![CDATA[<p>a) Output Sample 4</p><p><br></p><p>Name = Sultana</p><p>Age = 17</p><p>Mark 1 = 67</p><p>Mark 2 = 87</p><p>Mark 3 = 97</p><p><br></p><p>b) Area of triangle </p><p><br></p><p>//superclass</p><p>class Shape{</p><p>  double area;</p><p>}</p><p><br></p><p>//subclass</p><p>class Triangle extends Shape{</p><p>  double base;</p><p>double height;</p><p><br></p><p>//constructor</p><p>public Triangle(double base,double height)</p><p>{ </p><p>     this.base=base;</p><p>     this.height=height;</p><p>}</p><p><br></p><p>void calcArea(){</p><p>    area = 0.5*base*height:</p><p>}</p><p>}</p><p><br></p><p>public class AreaTriangle{</p><p>   public static void main(String[] args)</p><p>{</p><p>     double base=5;</p><p>     double height=13;</p><p>Triangle triangle=new Triangle(base,height);</p><p><br></p><p>triangle.calcArea();</p><p>System.out.println("Area of the Triangle:" + triangle.area);</p><p>}</p><p>}</p><p><br></p><p><br></p><p><br></p><p> </p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-07 02:48:49 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779035734</guid>
      </item>
      <item>
         <title>FATIN UMAIRAH</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779887679</link>
         <description><![CDATA[<p>1) Output</p><p>Name = Sultana</p><p>Age = 17</p><p>Mark1 = 67</p><p>Mark2 = 87</p><p>Mark3 = 97</p><p><br/></p><p>2) Area of triangle</p><p>class Shape {</p><p>   </p><p>}</p><p>class Triangle extends Shape {</p><p>    double base;</p><p>    double height;</p><p>    </p><p>    public Triangle(double base, double height) {</p><p>        this.base = base;</p><p>        this.height = height;</p><p>    }</p><p>   </p><p>    public double calculateArea() {</p><p>        return 0.5 <em> base </em> height;</p><p>    }</p><p>}</p><p><br/></p><p>public class Main {</p><p>    public static void main(String[] args) {</p><p>       </p><p>        Triangle triangle = new Triangle(5.0, 8.0);</p><p>        </p><p>        System.out.println("Area of the triangle: " + triangle.calculateArea());</p><p>    }</p><p>}</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-07 14:17:15 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779887679</guid>
      </item>
      <item>
         <title>nithyan</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779915038</link>
         <description><![CDATA[<p>class Person {</p><p><br/></p><p>String name;</p><p><br/></p><p>int age;</p><p><br/></p><p>}</p><p><br/></p><p>class Student extends Person //sub class</p><p><br/></p><p>{</p><p><br/></p><p>int mark1,mark2,mark3;</p><p><br/></p><p>void DisplayData()</p><p><br/></p><p>{</p><p><br/></p><p>System.out.println("Name = "+name);</p><p><br/></p><p>System.out.println("Age=" +age);</p><p><br/></p><p>System.out.println("Mark1="+mark1);</p><p><br/></p><p>System.out.println("Mark2=" +mark2);</p><p><br/></p><p>System.out.println("Mark3="+mark3);</p><p><br/></p><p>}</p><p><br/></p><p>}</p><p><br/></p><p>class StudentDemo{</p><p><br/></p><p>public static void main(String args[]){</p><p><br/></p><p>Student obj1 =new Student();</p><p><br/></p><p>obj1.name="Sultana";</p><p><br/></p><p>obj1.age=17;</p><p><br/></p><p>obj1.mark1=67;</p><p><br/></p><p>obj1.mark2=87;</p><p><br/></p><p>obj1.mark3=97;</p><p><br/></p><p>obj1.DisplayData();</p><p><br/></p><p>}</p><p><br/></p><p>}</p><p><br/></p><p>output =</p><p>Name=sultana </p><p>Age=17</p><p>Mark1=67</p><p>Mark2=87</p><p>Mark3=97</p><p><br/></p><p>process completed</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-07 14:31:39 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779915038</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779962033</link>
         <description><![CDATA[<p>abstract class areaTriangle {</p><p>public abstract double </p><p>calculateArea();</p><p>}</p><p>class Triangle extends </p><p>areaTriangle {</p><p>private double base; </p><p>private double height;</p><p>public Triangle (double base,</p><p>double height) {</p><p>this.base = base;</p><p>this.height = height;</p><p>}</p><p>public double calculateArea(){</p><p>return 0.5 base height;</p><p>}</p><p>}</p><p>class TriangleDemo {</p><p>public static void main(String[] </p><p>args){</p><p>Triangle triangle = new </p><p>Triangle(25, 20);</p><p>double area =</p><p>triangle.calculateArea();</p><p>System.out.println( "Area of the triangle: " + area);</p><p>}</p><p>}</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1891261457/da07459633a9ddfd0927d3fd0af0701a/Screenshot_2023_11_07_225716.png" />
         <pubDate>2023-11-07 14:58:01 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2779962033</guid>
      </item>
      <item>
         <title>Afiqah</title>
         <author></author>
         <link>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2780057073</link>
         <description><![CDATA[<p>a) Output Sample 4</p><p><br/></p><p>Name = Sultana</p><p>Age = 17</p><p>Mark 1 = 67</p><p>Mark 2 = 87</p><p>Mark 3 = 97</p><p><br/></p><p>b) Area of triangle</p><p><br/></p><p>//Superclass</p><p>class Shape</p><p>{</p><p>double area;</p><p>}</p><p><br/></p><p>//Subclass</p><p>class Triangle extends Shape</p><p>{</p><p>double base;</p><p>double height;</p><p><br/></p><p>//constructor</p><p>public Triangle(double base, double height)</p><p>{</p><p>this.base=base;</p><p>this.height=height;</p><p>}</p><p><br/></p><p>void calcArea()</p><p>{</p><p>Area = 0.5*base*height;</p><p>}</p><p>}</p><p><br/></p><p>public class AreaTriangle</p><p>{</p><p>public static void main(String[] args)</p><p>{</p><p>double base=6;</p><p>double height=12;</p><p><br/></p><p>Triangle triangle=new Triangle(base, height);</p><p><br/></p><p>triangle.calcArea();</p><p>System.out.println("Area of the Triangle:" + Area);</p><p>}</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-07 15:57:16 UTC</pubDate>
         <guid>https://padlet.com/thanuesh25/ptfxokazlsavgjdj/wish/2780057073</guid>
      </item>
   </channel>
</rss>
