Class : the "blueprints" for an object and the actual code that defines the properties and methods
Object : running instances of a class that contain all the internal data and state information needed for your application to function.
inheritance : the ability to define a class of one kind as being sub-type of a different kind of class (just like:
child class->You
parent class->Your father.
you can have your father's all properties e.g house,money ,but you also have your own properties e.g your friend,your PS3 .
In inheritance, you will have your father's house,your father's money,your friend and your PS3 ,But your father can't have your friend and your PS3
)
polymorphism : allow a class to be defined as being a member of more than one category of classes(just like :
a car is "a thing with an engine " and "a thing with wheels"
)
Interfaces : defines a contract specifying that an object is capable of implementing a method without actually defining how it is to be done.
encapsulation : the ability of an object to protect access to its internal data.
Billy: just have a look,no need to remember it right now.Because we will see how it works soon.
No comments:
Post a Comment