Skip to content

    Community

    #Classes
    Cubicle
    Profile picture for polymathematicspolymathematics
    Seance AI
    Profile picture for aestudioaestudio
    voicePerfect
    Profile picture for MartinBowlingMartinBowling
    Explore the Community HubSubmit a Deployment
    Community Hub
    Submit Deployment
    TOP TAGS
    #python
    #javascript
    #ai
    #apps
    #html
    #fun
    #game
    #simple
    #python3
    #java
    #cpp
    #bash
    #Css
    #c
    anshi449944
    anshi449944
    published a Repl
    1 month ago
    0
    account_usingoops
    account_usingoopsBank account, debit, credit and check balance using oops
    anshi449944
    anshi449944
    published a Repl
    1 month ago
    0
    avg_usingoops
    avg_usingoopsaverage using classes and objects
    waqar-s
    waqar-s
    published a Repl
    1 month ago
    0
    Class in JavaScript
    Class in JavaScriptExplanation: class MyClass: This defines a new class named MyClass. // Class body: This is where you define the properties (data) and methods (functions) associated with the class. Example 2: Rectangle Class: This example defines a Rectangle class with a constructor that takes width and height as arguments and initializes the properties. The getArea and getPerimeter methods are defined to calculate and return the rectangle's area and perimeter, respectively. An instance of the Rectangle class (rect1) is created with specific dimensions, and then its methods are used to calculate and print the area and perimeter. Remember, JavaScript's class syntax provides a way to structure your code and create objects with specific properties and behaviors. However, it's important to understand that JavaScript doesn't fully adhere to all OOP principles like traditional class-based languages.
    muhammadshafey0
    muhammadshafey0
    published a Repl
    2 months ago
    0
    Multiple Inheritance in python
    Multiple Inheritance in pythonMultiple Inheritance in python
    muhammadshafey0
    muhammadshafey0
    published a Repl
    2 months ago
    0
    Single Inheritance in python
    Single Inheritance in pythonSingle Inheritance in python
    CecilBrews
    CecilBrews
    published a Repl
    2 months ago
    0
    Day 64: Job classes
    Day 64: Job classesA small program to practice classes and methods. Lets you enter the job description and assigned it to an employee, subclass for doctors and teachers. It's still on wip, I'd like to add it to a dictionary or something but I'm a little tired today :')
    Copyright © 2024 Replit, Inc. All rights reserved.
    • twitter
    • tiktok
    • instagram
    • facebook

    Replit

    Programming languages

    • Python
    • JavaScript
    • TypeScript
    • Node.js
    • Nix
    • HTML, CSS, JS
    • C++
    • Golang