Posts

Showing posts from October, 2022
Image
                                                                                                   Casting There are 2 types of casting..         1.Up casting         2.Down casting Up Casting         Primitive data types.. 1. byte 2. char 3. short   4. int 5. long 6. float 7. double 8. boolen Integer (Hierarchy).                           Floating (Hierarchy) 1. long                                                  1. Double 2. int             ...
Image
                                                                                            Super keyword The super class uses the super keyword to call the constructor from the sub class. Then the super class will run inside the constructor. "The super class can be accessed/called even from methods and variables with the super keyword".                                         SUPER - SUPER CLASS... Ex ; Class Monkey {          Monkey () {         }         }         Class Man Extends Monkey {          Man () {         Super () ;...
Image
                                                                                            Method Overriding    ★ The method, method body (the code inside the method) from one (super class) to another (sub class),  change is method overring. Super Class  →   Monkey → Eat ();                                                Climb (); Class Man Extends Monkey  Sub Class      →   Man       → Eat ();                                                 Clim...
Image
                                                           Access Modifiers                  Class , Varaible , Method  - Java Security - [( Class , Variable , Method ) (Access -Yes/No)} ★( Class,  variable , method ) The ability to access and not access is determined according to the security (modification) given to access. Access Modifiers What are the 4 types?                ★   Public                ★   Protected                ★   Default                ★   Private Public (class variable methods) If the project is public, this (class variable method) accesses any class in a...
Image
                                                                                                Inheritance    1st Generation car...                       Drive             Breake             Reverse New Generation car...            Drive            Breake            Reverse            Flying            Surf Adding Things That Have One Property To Another Property Is Inheritance. And It Is Possible To Inherit Things From One Thing To Another.  According to the diagram abo...
Image
               Java Programming [(Ict) Information And Communication Technology]             What is java programming...... Java is a computer  Programming  Language . It enables programmers to write computer instructions using English-based commands instead of having to write in numeric codes. It’s known as a high-level language because it can be read and written easily by humans.      Like English , Java has a set of rules that determine how the instructions are written. These rules are known as its syntax. Once a program has been written, the high-level instructions are translated into numeric codes that computers can understand and execute.                                            OPPC (Object Oriented Programming Concept)         Introduction..... In t...