Java PolymorphismPolymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance.Like we specified in the previous chapter; Inheritance lets us inherit at... |
Java Inheritance (Subclass and Superclass)In Java,it is possible to inherit attributes and methods from one class to another.We group the "inheritance concept" into two categories::subclass (child) - the class that inherits from anoth... |
Java PackagesJava Packages & API.A package in Java is used to group related classes.Think of it as a folder in a file directory.We use packages to avoid name conflicts,and to write a better maintainable co... |
200 Days of Hair - From Long Locks to the Big ChopHey everyone! For the past 200 days,I've been on a hair-growing adventure.It's been quite the journey,letting my hair grow freely,and now,as I get ready for junior year,it's time for a big cha... |
Java Abstract Classes and MethodsData abstraction is the process of hiding certain details and showing only essential information to the user.Abstraction can be achieved with either abstract classes or interfaces (which you w... |
Java Classes and ObjectsJava is an object-oriented programming language.Everything in Java is associated with classes and objects,along with its attributes and methods.For example: in real life,a car is an object.The... |
Java RecursionRecursion is the technique of making a function call itself.This technique provides a way to break complicated problems down into simple problems which are easier to solve.Recursion may be a b... |
Java ScopeIn Java,variables are only accessible inside the region they are created.This is called scope.Method Scope.Variables declared directly inside a method are available anywhere in the method foll... |
Java MethodsA method is a block of code which only runs when it is called.You can pass data,known as parameters,into a method.Methods are used to perform certain actions,and they are also known as functio... |
Java ArraysArrays are used to store multiple values in a single variable,instead of declaring separate variables for each value.To declare an array,define the variable type with square brackets:We have n... |
Java While Loop/Do While Loop/For Loop/For-Each Loop/Break/ContinueLoops can execute a block of code as long as a specified condition is reached.Loops are handy because they save time,reduce errors,and they make code more readable.Java While Loop.The while lo... |
Java Switch StatementsInstead of writing many if.else statements,you can use the switch statement.The switch statement selects one of many code blocks to be executed:Syntax:This is how it works::The switch expressi... |
Java Short Hand If...Else (Ternary Operator)In the vast world of programming,efficiency is key.Every line of code counts,and developers constantly seek ways to streamline their scripts without compromising functionality.One such tool in... |
Java If ... ElseYou already know that Java supports the usual logical conditions from mathematics::Less than: a < b,Less than or equal to: a b,Greater than or equal to: a >= b,Equal to a == b,Not Equal to: a ... |
Java MathIn the realm of Java programming,mathematics plays a pivotal role,empowering developers to perform a myriad of numerical operations with ease.At the heart of these capabilities lies the Java M... |
Java VariablesVariables are containers for storing data values.In Java,there are different types of variables,for example::String - stores text,such as "Hello".String values are surrounded by double quotes,... |
Java CommentsIn Java programming,clarity and readability are paramount.As developers craft intricate algorithms and intricate logic,the need for comprehensive explanations becomes evident.Enter Java commen... |
The Print() MethodPrint Text.You learned from the previous chapter that you can use the println() method to output values or print text in Java:You can add as many println() methods as you want.Note that it wil... |
Java SyntaxIn the vast landscape of programming languages,Java stands as a titan – revered for its versatility,reliability,and widespread usage.At the heart of Java lies its syntax,the rules and convent... |
Java Getting StartedSome PCs might have Java already installed.To check if you have Java installed on a Windows PC,search in the start bar for Java or type the following in Command Prompt (cmd.exe):If Java is ins... |
What is Java?With a population of 151.6 million people, Java is the world's most populous island, home to approximately 56% of the Indonesian population.Some of you may curious why Java is the most famous ... |
The Chronicles of a Trash Whisperer that I learned at Santa Ana River Palos VerdesIn the small town of Santa Ana River Palos Verdes,I began a special mission.This wasn’t just any mission.It was a quest to help the Earth by picking up trash,one piece at a time.Armed with a ... |
Python ModulesWhat is a Module?.Consider a module to be the same as a code library.A file containing a set of functions you want to include in your application.Create a Module.To create a module just save t... |
Python ScopeA variable is only available from inside the region it is created.This is called scope.Local Scope.A variable created inside a function belongs to the local scope of that function,and can only... |
Python PolymorphismThe word "polymorphism" means "many forms",and in programming it refers to methods / functions / operators with the same name that can be executed on many objects or classes.Function Polymorph... |
Python IteratorsAn iterator is an object that contains a countable number of values.An iterator is an object that can be iterated upon,meaning that you can traverse through all the values.Technically,in Pytho... |
Python InheritanceInheritance allows us to define a class that inherits all the methods and properties from another class.Parent class is the class being inherited from,also called base class.Child class is the... |
Python Classes/ObjectsPython is object-oriented.In Python,most things are objects with properties and methods.Class is an object constructor or "blueprint" for creating objects.Create a Class.To create a class,use ... |
Python ArraysArrays are used to store multiple values in one single variable: Access the Elements of an Array.You refer to an array element by referring to the index number. .The Length of an Array.Use the... |
Python LambdaA lambda function is a small anonymous function.A lambda function can take any number of arguments,but can only have one expression.Syntax.The expression is executed and the result is returned... |
Embarking on Data Adventures - My First Days as a Data Software Engineer InternStarting my first internship as a Data Software Engineer has been like stepping onto a roller coaster,full of ups,downs,and thrilling surprises.Today,I really began to dive into the work,looki... |
What is OTT(Over The Top)?According to the Wiki, an over-the-top (OTT) media service (also known as a streaming platform) is a media service offered directly to viewers via the Internet. OTT bypasses cable, broadcast, ... |
Python FunctionsA function is a block of code which only runs when it is called.You can pass data,known as parameters,into a function.A function can return data as a result.Creating a Function.In Python a fun... |
Python While Loops/For LoopsThe while Loop.With the while loop we can execute a set of statements as long as a condition is true.The while loop requires relevant variables to be ready,in this example we need to define an... |
Python Conditions and If statementsPython supports the usual logical conditions from mathematics::Equals: a == b,Not Equals: a != b,Less than: a < b,Less than or equal to: a b,Greater than or equal to: a >= b.These conditions c... |
Python DictionariesDictionaries are used to store data values in key:value pairs.A dictionary is a collection which is ordered*,changeable and do not allow duplicates.Dictionaries are written with curly brackets... |
Python SetsSets are used to store multiple items in a single variable.Set is one of 4 built-in data types in Python used to store collections of data,the other 3 are List,Tuple,and Dictionary,all with di... |
Python TuplesTuples are used to store multiple items in a single variable.Tuple is one of 4 built-in data types in Python used to store collections of data,the other 3 are List,Set,and Dictionary,all with ... |
Python Comparison OperatorsOperatorDescriptionExample.==,If the values of two operands are equal,then the condition becomes true.(a == b) is not true..!=,If values of two operands are not equal,then condition becomes tr... |
Python ListsLists are used to store multiple items in a single variable.Lists are one of 4 built-in data types in Python used to store collections of data,the other 3 are Tuple,Set,and Dictionary,all with... |
Python String OperationsYou can return a range of characters by using the slice syntax.Specify the start index and the end index,separated by a colon,to return a part of the string.Slice From the Start.By leaving out... |
Python Data TypesIn programming,data type is an important concept.Variables can store data of different types,and different types can do different things.Python has the following data types built-in by default... |
Python VariablesVariables are containers for storing data values.Creating Variables.Python has no command for declaring a variable.A variable is created the moment you first assign a value to it.Variables do ... |
Python CommentsComments can be used to explain Python code.Comments can be used to make the code more readable.Comments can be used to prevent execution when testing code.Creating a Comment.Comments starts w... |
Python SyntaxExecute Python Syntax.As we learned in the previous page,Python syntax can be executed by writing directly in the Command Line:Or by creating a python file on the server,using the .py file ext... |
Python Getting StartedMany PCs and Macs will have python already installed.To check if you have python installed on a Windows PC,search in the start bar for Python or run the following on the Command Line (cmd.exe)... |
Python IntroductionPython is a popular programming language. It was created by Guido van Rossum, and released in 1991.It is used for:web development (server-side), software development, mathematics, system scrip... |
What is Python?Python is a genus of constricting snakes in the Pythonidae family native to the tropics and subtropics of the Eastern Hemisphere.In terms of programming language, Python was created by Guido v... |
What is a smart TV?In the realm of television,a new star has emerged: the Smart TV.But what exactly is a Smart TV,and what sets it apart from traditional TVs? Let's unravel the mystery and explore the wonders of... |
Original Asian-Themed Content to Serve a Diverse Asian Audience from Horowitz ResearchHorowitz Research published a great report regarding Asian TV Content Viewers,Six in 10 (61%) Asian TV content viewers watch Asian-language content at least occasionally,and 2 in 3 (65%) Asian... |