Masteries: What is an object, attribute and method?

--Originally published at Alan TC201

To explain an object in programing is easy to link it to real word things that have state and behavior, for example a videogame console, this object has different states like color, name or weight and has behavior like turn on and off, run games, movies, browse internet, etc.

Software objects have a very similar way to see them. An object stores its state in attributes and exposes its behavior through methods. Methods will tell how the object will behave while interacting with another object and attributes will tell the stats of that object.

Masteries: What is an object, attribute and method?

Everything can be an object, and maybe you have different objects with states and behaviors in commun, so to not get confused you need to give to the object a CLASS to differentiate from other things,and you can have an infifite number of classes put together

For example, taking the video game console again, you need a way to have the methods and states put together. You can have a class that its only about each brand of each console like a class named Nintendo, Sony, Microsoft and PC and inside that class put another class that refers specifically to home console and portable consoles.

Class Nintendo:
Methds and stats of this class
Sub class Portable:                                                                                             Methds and stats of this class

Masteries: What is an object, attribute and method?

Classes are blueprints that are going to tell everything about the object, and this is the first thing to know about Java.

To see more info here’s a link to more deatels: https://docs.oracle.com/javase/tutorial/java/concepts/object.html

 

 

Masteries: What is an object, attribute and method?


Masteries: What is an object, attribute and method?

WSQ05 – Project

--Originally published at Alan TC201

Just now I do not have an idea of what to do, I have ideas of a game, a data base, a puzzle. There are diferent pages that give me some ideas about what to do. For example.

https://blog.udemy.com/java-projects/

WSQ05 – Project

This one gives interesting ideas, like a Simple Java Text Editor, Hotel Reservation System, Simple Calculator

On the other hand there’s a very extend viarity of thing you could do in terms of Video games, any 2D game, puzzes, carts games and more. http://www.edu4java.com/en/game/game0-en.html

WSQ05 – Project

In the future I will edit this poust about what my final project will be.


WSQ05 – Project

WSQ05 – Project

--Originally published at Alan TC201

Just now I do not have an idea of what to do, I have ideas of a game, a data base, a puzzle. There are diferent pages that give me some ideas about what to do. For example.

https://blog.udemy.com/java-projects/

WSQ05 – Project

This one gives interesting ideas, like a Simple Java Text Editor, Hotel Reservation System, Simple Calculator

On the other hand there’s a very extend viarity of thing you could do in terms of Video games, any 2D game, puzzes, carts games and more. http://www.edu4java.com/en/game/game0-en.html

WSQ05 – Project

In the future I will edit this poust about what my final project will be.


WSQ05 – Project

WSQ04 – Flipped Learning

--Originally published at Alan TC201

Flip class is a modern way of teaching, a method were the students get lectured by themselves in home and can ask questions in class, while the normal way is to get lectured in class and get stuck in home because you did not understand something.

WSQ04 – Flipped Learning

I see this method as a way to be more efficient in time, you have more time to ask questions can be prepared for exams. It is common to arrive to a class and be frightened to ask questions because in return you will receive a “you should know this because I lecture the last class” and the student is like “well, I did not get it the last class, so now I’m completely lost”

WSQ04 – Flipped Learning

WSQ04 – Flipped Learning

Memes about this are infinite.

 


WSQ04 – Flipped Learning

WSQ03 – Object-Oriented Basics

--Originally published at Alan TC201

First info taken from my previous Blog post. http://wp.me/p77XRU-u

WSQ03 – Object-Oriented Basics

Objects: Objects have states and behaviors, for example a car has stats like color, form, name and behaviors would be how fast it goes or how many gasoline it use.

Software objects also have a state and behavior. A software object’s state is stored in fields and behavior is shown via methods.

In software development, methods operate on the internal state of any object and the objects communicate by methods.

So in resume a method has a bunch of statements inside, and methods are what gives objects its particularities.

Class: A class is like a box that has inside has methods and those methods are affecting the objects inside the class

WSQ03 – Object-Oriented BasicsWSQ03 – Object-Oriented Basics


 

“Encapsulation”
Now after all this information we can dig more in terms of Java programing, first of all, the term “encapsulation”.
This means that, to have a better program, that is easy to read, to understand and fix the classes need to be private, so that the methods of a class only affect the data or the objects inside that class.

WSQ03 – Object-Oriented Basics

Inheritance”
Other term that plays in Object-Oriented programming is inheritance”, this term tell us that we can “link” or transfer different methods between different classes that have similarities in them and use the same methods besides they use particularly methods. This helps to not duplicated methonds in diferent clases that have methods in commun.

If we couldn’t use Inheritance we will have to specify each method in each class we will have to explicit define each method in each class individually.
Multiple Inheritance means that a class have common things between two classes but those two classes don’t have Inheritance between them.

BUT BE CAREFUL, YOU DON’T CIRCULATE AN INHERITANCE, this means that a class cannot inheritance from itself, like a circle.

Overriding means that you could have different classes chain together and inheritance from the top one. For example, we have class, and we have a method call MON in the class V, normally all the classes below but if we have a method also call MON in the X class the the classes below X will inheritance the MON from the x class.

V – MON
W – MON FROM CLASS V
X – MON
Y – MON FORM CLASS X
Z – MON FROM CLASS X

Intarface is a set of methods that can have commun things inside different classes.

WSQ03 – Object-Oriented Basics

Here’s a video that explains everything with better examples.


WSQ03 – Object-Oriented Basics

WSQ02 – Hello World

--Originally published at Alan TC201

The first thing to start programing in any language is to print the famous Hello World. In this blog post I’m going to show you how I did my Hello World and what I used to make it possible.

WSQ02 – Hello World

First of all, objects and class-

Objects: Objects have states and behaviors, for example a car has stats like color, form, name and behaviors would be how fast it goes or how many gasoline it use.

Software objects also have a state and behavior. A software object’s state is stored in fields and behavior is shown via methods.

In software development, methods operate on the internal state of any object and the objects communicate by methods.

So in resume a method has a bunch of statements inside, and methods are what gives objects its particularities.

Class: A class is like a box that has inside has methods and those methods are affecting the objects inside the class

Now the definition of each word used to make thos program.

“public” means that main() can be called from anywhere.
“static” Tell that theres no need for an input to run the program.
“void” means that main() returns no value
“main” The first thing that runs in all the program.
“String[]” means an array of String.
“args” is the name of the String[] (within the body of main()). “args” is not special; you could name it anything else and the program would work the same. https://www.quora.com/What-does-each-term-in-public-static-void-main-String-args-mean

WSQ02 – Hello World

Now that you have all this information you can make your program.
WSQ02 – Hello WorldThis will be the result:WSQ02 – Hello World
All the links in this blog post sends you to the respective information and here’s a video explaining each step.

WSQ02 – Hello World


WSQ02 – Hello World