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

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium