Transcripts
1. Introduction To Swift Course: Welcome everyone to the complete SIFT programming
beginner course. So this course consists
of two different modules. In the first model, we are
going to discuss about the concepts like how to run the Sift to
program in Windows. Also, we are going to discuss about variables, data types, conditional statement, far loop, arrays in Sif
programming language. In the second module, we are going to discuss about
object oriented concepts class object, polymorphism, inheritance in SIFT
programming language. So this course is very, very, very useful for the
beginners who are trying to learn Sift programming
language for the first time. So let's get started.
2. Swift Class 1 : Introduction To Swift: Welcome, everyone.
In today's class, we are going to discuss about introduction to SIFT
programming language. So SIFT is powerful modern
programming language developed by Apple. So it is very, very
useful for if you want to create any application
for IOS or Mac, you have to use SIFT
programming language. So that's the second point. It is designed to be fast
safe and expressive, making it a popular
choice for building IOS, MAC, and other Apple
platform applications. If you want to create
any applications for IOS how to use SIFT
programming language. So it was developed by Apple. So it is the introduction to
SIFT programming language. So after that, we are
going to discuss about history and evaluation of CIF. So the SIFT was first
introduced in the year 2014. So after the replacement for
Apple object to C language. So it is an advanced
version of CN language. And then second one is
nothing but rapid adoption. So SIFT is very, very popular. It is very, very popular for creating the Mac and
IOS applications. So the third one is nothing
but continuous improvement. We know that the applications
like IOS, mobile, and Mac Lab or desktop
are updated every year. Then the language
is also updated. That language is nothing but
shift programming language. So after that, we
are going to discuss about advantages of SIP. So the first one is
the performance. So SIFT is powerful and
fast programming language. So that's the first advantage, and then second
advantage is safety. If we use SIP
programming language, the source code are very safety than other programming
languages. And then third
advantage is nothing, but the SIFT will provide the source code both
readable and maintainable. After that, we are
going to discuss about the disadvantages of CIF. So the first tone is the
cross platform support. So the SIFT program language
is mainly developed for the apple applications
like Mac and IOS. So that's the first
disadvantage. And then second disadvantage
is nothing so SIFT has low libraries compared to other programming languages like C and C plus plus and CSR. So that's the second
disadvantage. And the third
disadvantage is nothing, but the syntax of SIFT programming language is different than other
programming language. So these are all
the disadvantages. What are all the
applications that can be created using SIFT
programming language? So the first is the IOS and then second one is the MAC and then third one is
the server side. You can use the
SIFT for building the web services and APIs, then you can use SIFT
programming language for missing learning and AI. So if you want to
create any projects using missing learning and AI, you can use the SIFT
programming language. So these are all
the applications that can be created using SIFT. So the main one is the Apple
applications, IOS and MAX. Atlas, we are going
to discuss about the job opportunities when you learn SIFT programming language. So you can achieve the
jobs like IOS developer, MacOS developer, server side
developer, and ML engineer. When you learn SIFT
programming language, you can achieve these
jobs. So that's it, guys. In today's class, we
are discussed about the introduction to SIFT
programming language. So in the upcoming class, we are going to discuss
about how to run the SIFT programming
language in Windows. So let's see in the next class.
3. Swift Class 2 : Running Swift In Windows: Welcome everyone to
the first class. In today's class, we are
going to discuss about how to run SIFT
program in Windows. SIFT can be run only in MacOS. If you want to run
the SIF in Windows, you need to download
the software. The software is nothing
but SIFT for Windows. You have to select download Absen so you can see the
download is started. So you have to wait
for the download. So after the download
is completed, you have to open the file and you have to select
agree and then install. So you have to select Install
option for installing the software for running
the sift in Windows. So you have to wait
for the installation, or after that, you
have to select Finish. So this is the GOI for
running the Sift in Windows. So you can see the two
options compile and run. So if you want to compile the SIFT program,
you can use that. Also, you can use Run. If you want to run
the SIFT programs, you can use that option. Also, you can see the third
option that is Select File. You have to select your CIF to five for running the output. So after that, you need
to open your Windows C, and then you have to open
the CIF Inside that, you have to open the bin folder. Inside the bin, you have
to copy the file location. You have to copy the location, and then you have to
open the properties, environment variables. You have to copy the path and paste that inside the
environment variable. In two variables,
user variables, and also system variables. Thenly the SIFT program
will saw the output. So you have to open the command
and then you have to type Sift hyphen hyphen verson. You can see the verson 4.1 0.3. So we have successfully
installed Sift for our windows. Now we can run our SIFT
program in Windows. For that, you need
to create a folder, and then you have to open
the folder with VS code. So after opening the VS code, you need to install
some of the extension. For that, you have to
open the extension. So in that you
have to type sift. And then you need to
install the extension. After installing the extension, you need to create new file for that you have
to select new file, and then you have to type
the name of the file. I'm going to type
sample dot SIFT. So that's the extension for
creating the SIP to file. So now we are going
to discuss about how to run the file
in the VS code. First, we are going to print the output for
printing the output, you have to type print
off inside that, you have to type the string. I'm going to type Halo world. So after that, you
have to run the code. So you can see the
output Hala world. So this is how you can run the SIFT program in the VS code. Also, you have to run the code using the
SIFT for Windows. So you have to select your file, you have to select your file. And then you have
to select compile. So you can see
successfully compiled, and then you need
to run the code. So you can see the
output her world. So there are two ways
for printing the output. You can select terminal of the VS code or Sift
for Windows software. So it is your own choice.
So that's it, guys. In today's class, we
are discussed about how to run the SIFT
program in Windows.
4. Swift Class 3 : Variables: Come, everyone to
the second class. In today's class,
we are going to discuss about variables in F. So a variable is
nothing but a container, which is the data. So we are going
to see an example how to create variables. For that, you need to
type the keyword where. So you have to type where, and then you need to type
the variable name. So you can type your
own name equal to ten. So A is the variable, and ten is the value. Also, you can use
the keyword let. There are two keywords you
can use where and let. So if you want to
print the variables, you have to type print off, and then variable name. So this is how you can
print the variables. You have to run
the code, you can see the output ten and 20. So if you want to
clear the screen, you have to type CLS. Also, you can see the
output in Sift for Windows, so you have to select the file, and then you have to
compile the file, and then you have
to run the file. So you can see the
output ten and 20. So where is nothing but
if you create where, it will be considered
us global variable. But in let it will be
considered as local variable. It cannot be redeclare, but where can we redeclare?
5. Swift Class 4 : Datatype: Come, everyone.
In today's class, we are going to discuss
about data types in SIP to programming language. So there are many
data types like int, float, string,
character, double. So in SIP programming language, the syntax is very different than other programming language. So for that, we are
going to see an example. So first, you have to type
the keyword that is where. So that's the keyword for
creating the variable, and then you have to
type the variable name, A, and then you
have to type colon. So that's the syntax. And then you need to
type the data type. So I will be capital Int. So we are going to create
It data type variable. After that, you need to type
equal to value. That is ten. So this is how you can
create data type in Sift. So you have to type Int. That's the upper case. So we have just
created int datatype. After that, we are going to
create second data type, that is string as an capital, equal to quotation inside
the Dot type string a world. So this is how you can
create string data type. For swift programming language, you don't need to type
semicolon to the statement. It will not consider that. So after that, we are going
to create third data type, that is character data type. So you have to type
full character, equal to single quotation. Inside that, we are
going to type A. For character also, you need
to type double quotation. So after that, we
are going to create the fourth data
type that is float. So you have to type
F, colon float, you have to type float, equal to, you have to type
the floating value 20.5. So it is considered
as float data type. After that, we are
going to create double. You have to type D, colon, double equal to 32.45 56. So it is considered as double. After that, we are
going to discuss about the last data type
that is boolean. So you have to type bool
equal to true or false. So it is considered
as Boolean data type. So if you want to
print the variables, you have to type print off, and then variable name
and then run the code, you can see the output ten. After that, I'm going to
print string for that you need to change the variable
to B and then run the code, you can see the
output color world. And then I'm going
to print Boolean, you have to type zt, and
then print the output. You can see true. So this is how you can use
data type in sift. So the syntax is very different than other
programming language.
6. Swift Class 5 : Arithmetic Operator: Welcome, everyone.
In today's class, we are going to discuss
about arithmetic operator in sift to programming language. So arithmetic is nothing
but Addison division, multivulation, modulus,
increment and decrement. And then I'm going to create two variables A equal to
ten and B equal to pi. So if you want to print
the arithmetic operators, you have to type print A plus B. So that's the first arithmetic
operator that is Addison. And then you need to change
the symbol A minus B, A and B, A divided by B, a module of B, and
then A plus plus. So it is nothing
but post increment. And A minus minus. It is nothing but
post decrement. In SIFT programming language, increment and decrement
is not allowed. So if I try to run post
increment and post decrement, so can see the output error. So I can see the error plus
plus cannot be applied. So in CIF we cannot use post increment
and post decrement. That is increment and decrement. We cannot use that in SIFT programming language.
You have to remember that. So after that, I'm
going to run the code. So you can see the output 15, five, two, 50 and zero. So these are all the output
for the arithmetic operators. So that's it, guys.
In today's class, we are discussed about
arithmetic operator in SIFT. So you have to remember
that increment and decrement is not allowed in
Sift programming language.
7. Swift Class 6 : Logical Operator: Welcome, everyone.
In today's class, we are going to discuss
about logical operator in sift programming language. So there are three logical
operators and are not. We are going to
create two variables, A, cult ten and B cultic five. First, we are going to discuss
about unlogical operator. For that, we are going
to create two variables. Let A equal to ten and
let B equal to five. So after that, we
are going to print the logical operator one by one. First, we are going to
print the logical operator. So we have to type
print of A less than B and A greater than B. So in sift programming language, you have to type space between the operator and operant.
You have to type space. So in logical operator, the both condition must be true. If any one of the
condition is false, then the output will so false. So that's the concept of. So you have to remember
that the syntax of sift is different than
other programming language, so you have to time space between the operns and operator. So you have to run the code. So you can see the output falls. So one condition
is non satisfied. First, the condition
is non satisfied because A is not less than B. After that, we are
going to discuss about R for that you need
to type the code. A, greater than B, and then you have to type
the symbol A less than B. So in R, any one of
the condition is true, then the output will so true. If both condition are false, then the output will so false. So that's the difference. In and both condition must be true. But in R, any one must be true. If I run the code, you
cannot see the output because I don't type the
space between the elements. So you have to type A greater
than B and A less than B, space, and then you
have to run the code. So you can see the
output false untrue. So space is very, very important in sift
programming language. So after that, we
are going to discuss about naught logical operator. So naught is nothing, but it will reverse the output. So if the value of
logical operator is true, then the value of naught
logical operator will so false. So that's the concept of naught. It will reverse the output. True becomes false,
false becomes true. So how to tie the space between
the operans and operator. If we don't type the space, no output will be generated. So if I run the code, so we can see the output true. We know that and will
give the output false, but not will use
the output true. That's the concept of and not.
8. Swift Class 7 : If Else: Welcome everyone.
In today's class, we are going to
discuss about I first conditional statement in
SIP programming language. First, we are going to
create variable for that. So first, we are going to create variable for the
conditional statement. So you can also type A
equal to ten or you can also type in equal to ten. So there are two ways for creating the variable
using that data type. And then I'm going to print
the second B equal to 20. After that, I'm going to use I you need to type the I K word. Inside that you need to type the condition A greater than B. After that, I'm going
to print the output. If the condition
of I is satisfied, then it will print A
is greater than B. A is lesser than B. So you can type your own words. So if the if condition
is no satisfied, then s will be printed. So I'm going to
print B is greater. So if two conditions are not satisfied or if you want
to create more conditions, you need to type if, and then you need to
type the condition, A equal to equal to B. So then you need to
print the value. A is equal to B. So this is how you can use IFs conditional statement in
sift programming language. So we know that A
is lesser than B. Then's condition will be
generated in the output. So if I run the code, you cannot see the
output because I didn't write space between the
operator and parent. So you must remember that
you need to tie space between operator and opernt and then you need
to run the code. So you can see the
output B is greater. So you can see the's
condition is satisfied.
9. Swift Class 8 : While Loop: Welcome, everyone.
In today's class, we are going to
discuss about loops in Swift programming language. First, we are going to
discuss about wild loop. So loops are very, very important in
programming language. For example, if I want to print Hala world for more than
ten times for default, I'm going to type Hala world, hala world, hala world
using the print. For this problem, the loops are introduced in
programming language. So loops are based
on some condition. If the condition is satisfied, then it will print the output. For that, we are going
to see an example. We are going to print Hala world for ten times using
the wild loop. For that, you need to create
variable for the hala world. Where is equal to color world, that is string data type. After that, you need to
initialize the starting value. So you have to type I
equal to zero or one. And then you need to type
the keyword that is Y, condition, I ester
are equal to ten. Inside the curly brackets, we are going to run
the halor world. So the condition is I
stern are equal to ten. The value of I is one, one less than are equal to ten. The condition is satisfied. Then the loop will be executed. So inside the loop, we are going to print hla world. So for that, you need
to type print off. I will print the
output ten times. And then you need to
increment the value for printing the halor
worth for ten time. So in Swift
programming language, we cannot use increment
or decrement. For that, you need to type
the assignment operators. So you have to type I
equal to I plus one. So you have to remember
that you cannot use increment and decrement in
Swift programming language. Also, you have to time space between the operant
and operator. So first, the value of I is one. I is less than or equal to ten. The condition is satisfied, Hala world will be
printed one time. Then the value of
I will become two. The condition is two less
than or equal to ten. The condition is satisfied, then the hala world will
be printed second time. Then the value will
be incremented, up to ten, the condition
will be satisfied. When the value I becomes lawn. The condition is not satisfied because lawn is
not less than ten, then the loop will be IP. So these are all the concept of loops in programming language. So if I run the code, you can see the output halo
world is printed ten times. So this is how you can use Wil Loop in SIFT
programming language.
10. Swift Class 9 : For Loop: Welcome, everyone.
In today's class, we're going to discuss
about how to print halo world for ten
times using far loop. First, you need to type the
variable for Hala world. So the syntax of R loop is different in sift to
programming language. First, you need to type the far, and then you need to type
the increment value, and then you need to
type the in operator that is membership operator. And then you need to type
the range one, two, ten. You can type your own
range like zero to nine or 1210 or 1211 and based on your own choice,
you can type the range. And then you need to
type the Carly brackets. Inside the Carly brackets, you need to print the S. So
contains the halor world. So this is the syntax for far loop in sift
programming language. First, you need to
type the keyword for, and then I in and then range. So you can type your
own range zero to ten or zero to nine
or one to ten, so that's your own choice
and then run the code. So you can see the output, lo world is printed ten times.
11. Swift Class 10 : Break & Continue: Come, everyone,
in today's class, we are going to discuss
about break and continuous statement in
SIFT programming language. So break is nothing but it will exit the loop when the
condition is satisfied. Continue is nothing,
but it will skip the particular value in the loop when the
condition is satisfied. For then we are going
to see the example of break and continue
using far loop. First, you need to type
the far loop syntax for I in one to ten, that's the range, and then you need to type
the I condition. So if the value of
I becomes four, then we will exit the
loop using the break. And then we need to print
the I value one by one. So break is nothing, but it will exit the loop when the
condition is satisfied. The condition is I
equal to equal to four. So if I run the
code, you can see the output one, two, three. After the four, when
the value becomes four, the output is exit. So if I type seven and
run the code again, you can see the
output up to six. So that's the use of break. It will exit the loop when
the condition is satisfied. After that, we are going
to use the continue. So continue will strip the
particular value in the loop. So you can see all the values, but you cannot see the
particular value that is seven. So seven will skip the
loop. So that's it guys. In today's class, we discussed
about break and continue, break will exit the loop, continue will skip the
particular value in the
12. Swift Class 11 : Array: Come, everyone.
In today's class, we're going to discuss
about how to create array in SIFT
programming language. So RA is one of the data type which contains the elements. First, you need to type the
are keyword and then you have to type the
array name equal te. You have to type the square
bracket inside that, you have to type the values, ten, 20, 30, 40, and 50. So it will be considered as
integer data type array. So after that, we
are going to create the second data type
array that is string. So you have to type are
equal t square bracket off. You have to type the
values like hello world. Inside the double quotation,
you need to type. So it will be considered
as string data type array. So after that, we
are going to create array using different format. So you have to type X, colon, square bracket, equal
to square bracket. One, two, three, are ten, four, you can type
your own values. So it also will consider us
integer data type array. So if you want to access
any element in the array, you have to use the
index position. So index start from zero and then goes to
the element value, so zero, one, two, three, and then the element value. So that ten is the zero, 20 is the first,
30 is the second, 40 is the third,
and 50 is the four. So if you want to print the ten, you have to use the
index position. So you have to type print
eight square bracket, you have to type
index position zero. It will print the output ten, so you can see the output ten. So if I want to access world, you have to change the variable, and then you need to change
the index position also. Index position is one. After that, you need
to run the code, you can see the output world. So this is how you can access the array elements in the
sift programming language. After that, if you want to print all the elements of the array, you need to use far loop. For that, you need
to type the syntax. Far that's the keyword, and then you need to type N, and then you have to
type the value of array A curly
brackets inside that, you have to type print of I I. So you have to run the code. You can see the output, ten, 20, 30, 40, and 50. So this is how you can print the output of all elements
using the far loop.
13. Swift Class 12 : Class & Objects: Welcome everyone. Now we
are going to discuss about object oriented concept in
CIF to programming language. So first, we are going to
discuss about how to create class and object in Sif
to programming language. You need to type the
class, that's the keyword, and then you need to
type the class name, that's the file name. So sample is the file name, and then you need to
type the curly brackets. So this is how you can create the class in Sift to
programming language. After that, if you want
to create any variables, you have to type where keyword. And then you need to type the variable name equal to value. That is ten where
A equal to ten. So after that, we are going to create a function for Addison. So you need to type function,
that's the keyword, and then you need to type the function name, that is Addison. So funk is nothing but function. So after that, you need
to remove all the values. You can also type int. So if you want Int,
you can also type Int. Also, you can remove that. So this is how you can create fonts and ISP to
programming language, and then we are going to
print the value A plus B. So after that, we
are going to create object in SIP to
programming language. For that, you need to type, and then you need to
type the object equal to so in Sift
programming language, you don't need to
type new keyword. You have to simply
type the file name, that is the class name. It will create the object. So using the object, we can call the function. So OB dot, Addison off. So you have to type
OB dot, Addison off. So it will call the output
that is print of A plus B. So in the output,
you can see 30. So 30 is the addition of
two values, ten plus 20. So this is how you
can create class, function, and then object.
14. Swift Class 13 : Inheritance: Welcome everyone.
In today's class, we are going to discuss
about inheritance in SIP to programming language. So inheritance is nothing, but the child class will inherit the parent
class properties. So the properties can be the variables, methods
or constructor. For that, we are going
to see an example. First, you need to
create the parent class. So you have to type class. So that's the keyword, and
then you have to type sample. So that's the parent class, and then you have to
type curly brackets. Inside that, I'm going to
create variables for Addison. So where A equal to ten. You have to type child class. And then you have to type colon. So that's the syntax for inheritance in CIF to
programming language. And then you need to type the parent class
name that is sample. So this is how you can inherit the parent class in Sif
to programming language. So you have to type colon. In other programming language, you have to type extents. And then we are going to create the variable B equal to 20, and then we are going
to print A plus B. A will be inherited
from the parent class. So after that, you
need to create object. So you have to type OB equaltive and then you need to type
the child class name. Child off. So you don't
need to type new keyword, simply you have to
type child off. It will create the object. So after creating the object, you need to create function. You cannot directly access the print in the class
for that we are going to create funct and add off curly brackets inside that we are going to print A plus B. So after creating the function, you have to call that using the object of the child class. So you have to type
OB dot add off. So in the output, you can see 30 is generated successfully
using the inheritance. After that, we are
going to create the function in
the parent glass. We are going to
discuss about how to access that function using
the child class method. For that, I'm going
to type funct and then display of
parent class method. And then I'm going to call
the function display off. If I run the code, you can see the output parent class and 30. So using the child class, we can inherit the properties of the parent class like
variables and function. So this is the
single inheritance. So there are many inheritance
in programming language.
15. Swift Class 14 : Polymorphism: Welcome, everyone.
In today's class, we are going to discuss
about polymorphism in Sif to programming language. So there are two methods. First one is the method overriding and then
method overloading. First, we are going to discuss
about method overriding. So for method overriding, you have to type
override keyword. Then only you can use method overriding in Sift to
programming language. So we are going to see an
example for method overriding. First, you need to
create the parent class. So class sample is
the parent class. And then we are going to create the function that is display. So method overheading
is nothing, but both parent class and child class method
name are the same. So that's the method override. So inside the function, I'm going to print
parent method. So after that, I'm going
to create child class, you to type class, child, and then you
have to type colon, and then you have to
type parent class name. We just ingrate the values. And then you have to type the
function, function display. So these two display
names are very similar. That is method override. Inside that, I'm going
to print child method. But before the function, you need to type override. Then only you can
override the method. After that, I'm going to create child class object to type
where O B equal to child off. It will create the
object for the child. So using that object, we can call the display. Ob dt, display off. So it will print the
output child method. So you have to run the code, you have to see the
output child method. So if you want to print
the parent class method, then you have to
create another object. Then only you can
display the output. So using the child class object and overrid method,
we can override. So I'm going to create
another object for the parent class for
printing the parent method. So I have to type the name of the parent class, sample off. After that, you have to
call the function Ob dot, OB one dot display off. So it will print the
output part method. And then child method is
nothing but the second object. So that's it guys.
In today's class, we'll discuss about
method overriding.