Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

class

  1. Velpus Captiosus

    C++ Activity.h is defined 2 times.

    I have a class Stack with a header file Stack.h which uses up another class with a header file Activity.h I have a third class ActivityManager which uses up both the Stack and the Activity class.If I run the program and add in both Activity.h and Stack.h to the #include list I get a...
  2. Johna

    JavaScript Can I select an element by "role" or "data-test-id"?

    I'm trying to select an element, but the element doesn't have any class or id. This is the element: <div data-test-id="giftWrap" role="dialog" aria-label="Hybrid banner gift wrap" style="position: fixed; z-index: 680; background: rgba(0, 0, 0, 0.65); transition: height 0.5s cubic-bezier(0.26...
  3. Bogdan Floares

    C++ C++ class meaning

    What is a cpp class an how does it work. In java and c# a class(marked as public) is pretty much just a source file, or a public class is associated with a source file, for example: Program.java: public class Program{ } Or Program.cs: public class Program{ } Or I can have some not...
  4. T

    Python Problem with code

    Hello, I have a problem with this code, it says 'Alumno' object is not iterable, ¿what do i need to do to fix this problem?, thanks in advance. def Igual_Promedio(a, b): return sum(a) / 3 == sum(b) / 3 class Alumno: def __init__(self, data): self.data = i # Declaracion de...
  5. Ghost

    PHP How to Create a Basic PHP Class

    In this tutorial you will learn how to create a simple PHP class. Classes are used for many reasons, including but not limited to the following: Re-usability through the core system Organization Easier to manage long-term due to data (ex: user profile info) going through a defined class / set...
Back
Top Bottom