Some basic conceptions:
Object:
It is a program related state and behaviour.
Class:
A class is a blueprint or prototype from which objects are created. So it is a main program that tells what this whole program works and wants to show. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behaviour.
inheritance:
It provides a powerful and natural mechanism for organizing and structuring software. Class "inherit" and extend from superclass-- main class. And this is how we create subclass.
interface:
When a class implements an interface, it provides the behaviour published by that interface.
package:
It is a namespace for organizing classes and interfaces in a logic manner which will make the program easier.
Stack: In my own understanding, I think stack is first in last out, means that the first thing we put in is at the end of this stack and we can not take it out.
Queue: Opposite with stack, queue is first in first out. The first thing we put in is the first thing we take out.
没有评论:
发表评论