All Things Every Software Developer Should Know
What Software Developer Should Know ?
Software Developer Know all things about Object, Class, Function, Variables, Operators, Conditions, Exceptions and their functionality.
1) Object Oriented Programming
Base of Object Oriented Programming is to follow coding method by creating object, its properties and functions. Programmer can reuse objects anywhere in a program rather than writing same functionality code again and again. Therefore, this approach optimize code execution and make your program faster.
Anything which exist in this world is an object because it has some existence Like Car, Human Being, Animals, Birds, TV, Radio, LED etc…
Every object has some attributes and functions.
Attribute are properties of object like a Car has Color, Model, Make, and Engine Power etc….). A Human Being has some name, color, Sex, Height etc…
Functions which own by object like car can move. Human Being can walk, run, stand, can do some work etc…
3) Class and its Types
Class is a blueprint of an object. A class can contains multiple object. A class can be public/ Private/Protected.
Public means everyone is allowed to access. Private means that only members of the same class are allowed to access and Protected means that members of subclasses are also allowed.
A word Public/ Private/Protected is used while defining a class.
Special method which is responsible to initialize object with assigned values, defined in class.
special method which delete initialized object after terminating program.
Associated with class and referred to expose only essential information of class to the outside world and hiding their background details.
For example, a database system hides certain details of how data is stored and created and maintained but show data to end user.
Associated hiding of mechanism of class and data from outside of class. Like close pack of milk hide milk fragrance and color from outside world so packing material work as encapsulation for milk inside pack 🙂
Associated with class which is used for forming a new class by importing an already defined class properties and functions. In other words we can say, programmer use it for extending properties and functions of already defined class in another class.
Associated with class and this concept use for Inherit multiple classes in new class and redefine method of derived class.
For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles.
Associated with class and this concept of overloading is also a branch of polymorphism. When the exiting operator or function is made to operate on new data type, it is said to be overloaded.
11) Variable and its Types
While writing program in any language, you need to use multiple variables to store some information. Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.
You may like to store information of different data types like character, wide character, integer, floating point, double floating point, Boolean etc. Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory.
Variable can be Public/Private/Protected/Global/Static
A set of statement which together perform some task and return some value. A program can have 1000’s of functions/classes.
Like when a Human Being start walking, brain send message to organs to move in which direction and how to move by putting up leg/shrinking and expanding muscles.
- Function consist of following parts :
- Function Name
- Parameter which we also called arguments
- Function body /set of statements
- Return Type
13) Function Overloading
When multiple function with same name exist in a class with different Parameter/Arguments and number of Parameters. Function Overloading can occur without inheritance.
Void Print(string s);//Print string
Void Print(int i);//Print integer
14) Function Overriding
Rewriting the methods of inherited function from inherited class. Function Overriding occurs when one class is inherited from another class.
class Stream//A stream of bytes
public virtual void Read();//read bytes
class FileStream:Stream//derived class
public override void Read();//read bytes from a file
15) Function Call by Reference
calling a function, instead of passing the values of variables, we pass address of variables(location of variables) to the function known as “Call By References.
16) Function Call By Value
While calling a function, we pass values of variables to it such functions are known as “Call By Values”.
when function defined within class is called method. Difference between function and method is only when function is declared outside the class then it is called function or if function is declared within a class then it is called method.
special kind of variables that are used to pass information between functions or procedures.
void Print(string s);//Print string
void Print(int i);//Print integer
i and s are arguments of function.
is a symbol that tells the compiler to perform specific mathematical or logical operation. Majorly, there are 5 types of operators
Arithmetic Operators (+,-,*, /, %,++,–)
Relational Operators (==, !, =,>,<,>=,<=,)
Logical Operators (&&, ||, !)
Assignment Operators (=, +=,-=,*=,/=,%=)
20) Loops and its Types
When Programmer need to execute a block of code several number of times. It can be with some condition of termination of execution.
Following are types of Loop:
- For Loop
- While Loop
- Do While Loop
- Nested Loop
Programmers use Control Statements to change its normal sequence. Like break statement, Continue statement, goto statement
21) If Else Conditions
Programmer use it to execute some block of statement if a condition satisfy by input data. Like if use enter numeric value then execute numeric function else execute string function.
Developer use these statements “IF, Else and Else IF” for conditional execution of code.
22) Case and Switch Statements
Case and Switch Statements are same like IF and Else Statements. Programmer use Case and Switch Words for conditional execution of code block.
23) Exception Handling
a problem that arises during the execution of a program. Exceptions provide a way to transfer control from one part of a program to another and these are handled by using three keywords: try, catch, and throw.
Try Word try to run the code and catch word catch the error occurred and throw word throw error into bin.
We are helping to Software Developer by this article as Software Developer should they know all things to be an excellent Software Developer.
Are you searching for how to get successful in a Software Developer Job Interview? Then this article is only for you 🙂
Therefore following are Key points that Software Developer should know all things before starting Software development.
These question will also help you for an interview 😉
For more details you can visit tutorial points
To stay tuned and updated bookmark paktechub