Object Oriented Programming
Classes and Object
Class: Blueprints or prototype to create objects(House blueprint)
Objects: Actual instances of classes(Different house models)
Class-dorgercar
STATES (byte numberodSeats,numberofDoors,horsePower,color,isDamaged)
Behaviors(startEnginer(),getcolor(),getHorsePower())
OBJECTS:
redDorge,greenDorge,yellowDordge
Class-BasketballPlayer
STATES (String name,nickname,yearofBorn)
Behaviors(getName(),getNickName())
Access Modifier
Inheritance
Encapsulations
Abstraction
PolyMorphism.
Comments
Post a Comment