#OOP Learning

1 messages · Page 1 of 1 (latest)

fiery topazBOT
#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
I have a hard time learning oop everything until now is easy and simple and even now it’s easy I just always get lost and forget And yes I apply the things I learned and still forget.

Have you tried practicing more with coding exercises or building small projects to reinforce your understanding of OOP concepts? Repetition and application are key to solidifying your knowledge in object-oriented programming. Also, consider breaking down complex concepts into smaller, more manageable parts for better retention.

Useful links:

small imp
#

tag me when your here

fair barn
#

Is there a specific part you're getting stuck on? Or are there just some general questions you have about OOP?

small imp
#

-Is there a specific part you're getting stuck on? no but i can't understand it very well

#

i can't understand the stuff in oop like toString list of arrays object passing override abstrac encapsluation interface polymorphism and dynamic polymorphism this is everything that i can't get my head around its a lot that's why i asked a general quetion

cyan wraith
#

with it being so broad its hard to start somewhere

#

and the risk is high to start explaining something for hours just to get sth like "oh, i already knew that" back

#

could u be more specific, focus on one topic at a time and then ask a more concrete question on that topic, also explaining what u already know on the topic and what exactly is unclear to u

#

then ull get better and faster responses 👍

#

here is a basic example of "oop"

fiery topazBOT
#

A classic example of a simple Java class Person that has two fields String name and int age, with corresponding getter and setter methods:

public class Person {
  private String name;
  private int age;

  public Person(String name, int age) {
    this.name = name;
    this.age = age;
  }

  public String getName() {
    return name;
  }

  public int getAge() {
    return age;
  }

  public void setName(String name) {
    this.name = name;
  }

  public void setAge(int age) {
    this.age = age;
  }
}

Simple usage example:

Person person = new Person("John", 20);
System.out.println(person.getName()); // John
System.out.println(person.getAge()); // 20
person.setAge(21);
System.out.println(person.getAge()); // 21
cyan wraith
#

maybe we start there and u explain whats unclear with this snippet to u

small imp
fair barn
small imp
#

k

fair barn
# small imp k

I guess I should ask, but do you understand Zabuzard's code snippet with the Person class, or do you have any questions about it?

wary goblet
#

you didnt apply them enough, or didnt apply them in a way that matters

#

if you understand something, and use it frequently, you are going to remember

#

if you start a new job, and forget where the bathroom is... compare that to working at the job for 1 month+. chances are, youll remember where the bathroom is, because you understand where it is, you apply it frequently

#

you arent going to forget after a certain period

#

even once you leave that job, youll still probably remember where the bathroom is

#

this is no different. understand, apply, become familiar

shut latch
#

^^ There is no resource in the world that will magically make you remember better than any other. Every course, book, tutorial and class you find is basically going to teach you the same thing in different ways, it's up to you to apply those things and actually learn. It takes time and effort.