Object Orientation in Java [class notes]

Learning Goals The object oriented aspects of Java includes learning: Classes: how we create them and use them Classes as reference type: (and how they are different than primitive types) Encapsulation and access modifiers (details of classes remain inside of classes) Methods: basic behavior and creation field accessors and mutators:…

Introduction to Java

Java is a general-purpose computer-programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. Source: Wikipedia Code structure in Java A source-code file (with the .java extension) holds class. The class contains the methods and the methods contain the statements. // This is…