Jump to content

Recommended Posts

Posted

Hi.

i'm new in computer science. can anyone help to get the basic of OOP. I have no idea about it. But i know its importance that why i want to learn it. plz help me..

Posted (edited)

You probably have a basic idea of them already from playing video games and such.

 

Say I have a player in league of legends. The player character is an object and has information associated with it. For instance all basic characters in league of legends have

 

attack damage

attack speed

health

health regen

armor

magic resist

item slot 1

item slot 2

item slot 3

item slot 4

item slot 5

item slot 6

item slot 7

skill mapping 1

skill mapping 2

skill mapping 3

skill mapping 4

position information

click handlers

attack animations

movement animations

skill animations

etc

 

In computers we often need to create complex objects to add functionality to our programs. We also have this idea of object inheritance which basically allows us to reuse components like attack damage etc between different objects.

Edited by fiveworlds
Posted

i'm new in computer science. can anyone help to get the basic of OOP. I have no idea about it. But i know its importance that why i want to learn it. plz help me..

Did you read?

https://en.wikipedia.org/wiki/Object-oriented_programming

https://en.wikipedia.org/wiki/Class_(computer_programming)

https://en.wikipedia.org/wiki/Class-based_programming

https://en.wikipedia.org/wiki/Inheritance_(object-oriented_programming)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.