starkins's podcast: Recent Episodes

starkins

View Details

h JL block fgggghn

View Details

1.What is a class?
.It's a blue print of the object
or it defines the behaviour and characteristics of an object.

  1. What is an object?
    . It's a real world entity.

  2. What is an entity?
    . Anything that data can be stored about.
    Examples of entities:
    Car,people,builds and furniture we can story varies data about this entities what type of car or how old is the car.

  3. What you should never include in your naming of a class
    i) You should never include embedded symbols eg #,&,?,! and so many more.
    ii) Never use keywords as names of classes
    eg public,this,try and so many others

  4. How to name your class
    i) We can use letters or underscores and dollar symhol($)
    ii) The first letter should be a Capital letter
    ii) If you use a class name with 2 words each first letter should capital eg CarBody

  5. public class Car{ }

  6. How to save the class
    i) Car.java remember java is case sensitive hence car and Car not the same entity
    ii) In the event you have many class in one save only the public class.
    iii) Never save the class using keywords

View Details

introduction to basis of building blocks of java