Posts

Showing posts from October, 2023

JAVA Object Oriented Programming (OOP)

Image
Object Oriented Programming (OOP) What is OOP? OOP stands for  Object-Oriented Programming . What is an Object? Object means a real-world example (entity)  . examples car,  table, chair, computer,  watch.  An object has a unique identity, Properties (state), and behaviors. Object= Properties  (state)+ Behaviors Java is an object-oriented programming language. What is a Class? In Java, a class is a blueprint ( Template ) for creating Object, and it can contain method and variable. standards class Java {                       string str ; public void () { } } Class name standards: - Class names in Java are typically written in Pascal Case, which means the first letter of each word in the class name is capitalized, and there are no spaces or underscores between words. class  Java  {                       st...