Technology Guruu

  • Home
  • Site Info
    • About Us
    • Disclaimer
    • Privacy Polacy
  • Home
  • Digital Marketing
    • SEO
    • SMM
    • SEM
  • Quotes
  • Technical
  • Java
  • .Net
    • C#.Net
    • ASP.Net
  • Keychains
Showing posts with label TechnicalQuestions. Show all posts
Showing posts with label TechnicalQuestions. Show all posts

Tuesday, 10 October 2017

Brief description about Delegates

 Akansha     16:30:00     TechnicalQuestions     No comments   

Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadvantages and types of delegates all are provided in this article.

Best Tutorial about Delegates

brief introduction about delegates
Introduction

Delegates Introduction

  • Delegates are similar like C++ function pointers
  • To define we have to use delegate keyword,delegate are reference types.
  • delegate can hold the address of a function,using delegate object we can invoke a method without using method name.

Delegates are 2 types

1.Single caste Delegate

It can hold address of a single method

2.Multi Cast delegate:

  • It can  hold adresses of multiple methods
  • using multicast delegate we can ivoke multiple methods with a single call.

Implementation of delegate concept can be divided into following steps
Step1: Defining a class
step2: Defining a method
Step3: Defining a delegate
<Syntax>
<accessmodifier>delegate<returntype><delegatename>(<type><arg1>,<type><arg2>);
step4:creating object for delegateand initializing the method name
<delegatename><delegate objname>=new <delegatename>(<methodname>);
Step5: invokin the method by using delegate object
<delegate ojjname()>;
delegate are called as type function pointers because delegate declaration should follow the mathod declaration which is holding by the delegate object that means method return type and signature should be same for delegate.
Note:
Delegate can hold the address of static methods as well as instance methods.
Example to invoke instance methods by using delegate object(single cast delegate)
namespace singlecastDelegateex1
{
class calculate
{
internal int add(int a,int b)
{
return a+b;
}

}
internal delegate int Mydelegate(int x,int y);
class Program
{
void main()
{
calculate obj=new calculate();
MyDelegate delobj=new MyDelegate(obj.add);
int res=delobj(10,5);
console.WriteLine("addition result is :"+res);
console.ReadLine();
}
}
}
Friends you like my post please share to your friends through Facebook,Twitter,Google+.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Wednesday, 28 June 2017

Connected and Disconnected Data Access Architecture

 Akansha     17:30:00     TechnicalQuestions     No comments   

The Ado.Net Frame Work Supports Two Models of Data Access Architectures one is Connected Oriented architecture and second One is Disconnected Oriented Architecture.

ADO.Net Architecture

Connected and Disconnected Data Access Architecture
Complete Architecture

Connected Oriented Architecture in ADO.Net

  • In connected oriented architecture client application will perform database operations on central database directly. 
  • Before performing database operation connection has to open explicitly to central database as well as after completion of the database operation connection has to close explicitly 
  • In this architecture programmer has to write the code to open the connection as well as to close the connection

Advantages:

  •  Accessing data will be faster

Dis Advantages:

  • It Increase network traffic
  • Burden on database server
  • Explicitly programmer has to write the code to open the connection as well as to close the connection.
  • To overcome the above drawbacks we have to go for disconnected oriented architecture.

Disconnected Oriented Architecture in Ado.net:  

  • In Disconnected oriented architecture client application will not perform all the database operations on central database instead of that it will depend on Local database.
  • Central database will be part of remote machine but local database will be part of client machine.
  • Whenever client application required some data it will fetch from the central database, will be fill into local database then only we can bind the data from local database to client application.
  • If we want to perform any modifications like update,insert,delete,select. In this architecture we will perform on local database which we will reflect to central database directly(internally).
  • In this architecture programmer doesn't require to open the connection explicitly as well as no need to write any code and no need to close connection. This will happen internally automatically.

Advantages:

  • It reduce network traffic.
  • Reduce the burden on database server which improves the performance of the application
  • no need to write the code to open or to close the connection.

Dis Advantages:

  • Accessing data will be slower.
  • In this architecture local database object to creating with in the client machine which consumes client machine memory which affects the performance of client application.
Friends You Like My Post Please Share To Your friends Through Social Media Like Google +,Facebook,Twitter etc
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Tuesday, 27 June 2017

Top Most Differences between windows,web and console applications

 Akansha     11:00:00     TechnicalQuestions     No comments   

You want to get clarity on any topic the differences very helpful at that time and in these we are having top 5 differences between console application and web application and windows forms application.

Comparition Between Windows Application , Web Application and Console Application

Top Most Differences between windows,web and console applications

Console Application

1.Single User
2.No user interface
3.not depending on internet
4.To develop Console application we have to use C#.net and Console technology.
5.In realtime we will not develop console application.
Top Most Differences between windows,web and console applications

Windows Application

1.Single Use
2.Will have user interface(windows Forms)
3.Not depending on internet
4.To develop windows application we have to use C#.net and windows forms.
5.According to the requirement whenever that application should be available fo only one user then we will go for windows application.
Top Most Differences between windows,web and console applications

Web Application

1.Multi User
2.Supports user interface(webpage(or)webform)
3.Depending on internet
4.To develop web application we have to use C#.net and Asp.net
5.According to the requirement whenever that application should be available for multile users then we will go for web application.
Top Most Differences between windows,web and console applications

Friends you like my post please share to your Friends Through Facebook,Google+,Twitter.You feel free comment on my post. 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Wednesday, 7 June 2017

Brief Description about Multicast Delegate

 Akansha     10:30:00     TechnicalQuestions     3 comments   

Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time.

Multicast Delegate

hd images of Multicast Delegate

Multicast delegate return type should be void because it can hold only void methods
Example for multicast delegate to invoke instance methods
namespace multicastdelegateex1
{
class Myclass
{
internal void method1()
{
console.writeline("method1 is calling");
}
internal void method2()
{
console.writeline("method2 is calling");
}
}
internal delagate void MultiDelegate();
class Program
{
void main()
{
Myclass obj=new Myclass(0;
MultiDelegate delobj=new MultiDelegate(obj.method1);
delobj+=new MultiDelegate(obj.Method2);
delobj();
delob-=new MultiDelegate(obj.method2);
delobj();
console.ReadLine();
}
Output:
method1 is calling
method2 is calling
method2 is calling
method1 is calling
method1 is calling
Friends you like my post please share to your friends because sharing is caring.Share the post through social media like Facebook,Twitter,Google+ etc.And you feel free comment on post do you have any doubts i clarify your doubts.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Tuesday, 23 May 2017

Top 5 Questions and Answers in Arrays Using C#.Net

 Akansha     16:30:00     C#.Net, TechnicalQuestions     No comments   

Arrays question and answers in C#.net and we are solving critical programs using arrays it can be used to store multiple values at a time.

Arrays Questions and Answers

arrays

Q)Write a program to accept 6 numbers from console and store in array and find the sum of the number?
class A
{
static void main(0
{
int sum=0;
int[] Ar=new int[6];
for(int i=0;i<=5;i++)
{
Console.WriteLine("enter a number");
Ar[i]=int.parse(Console.ReadLine());
sum=sum+Ar[i];
}
Console.ReadLine("The sum is"+sum);
}
Q)Write a program to accept 7 numbers from console and find the sum of even and sum of odd use arrays?
class A
{
static  void main()
{
int esum=0,osum=0;
int[] Ar=new int[7];
for(int i=0;i<=6;i++)
{
Console.WriteLine("enter a number");
Ar[i]=int.parse(Console.ReadLine()0;
if(Ar[i]/2==0)
esum=esum+Ar[i];
else
osum=osum=Ar[i];
}
Console.WriteLine("the even sum is'+esum);
Console.WriteLine("the odd sum is"+osum);
}
}
Q)Write a program to reverse a string?
class A
{
static void main()
{
String s="satyam";
char[] ch=s.ToCharArray[];
for(int i=5;i>=0;i--)
{
Console.WriteLine(ch[i]);
Console.WriteLine();
}
}
Q)Write a program to check the given string  is polindrome or not?
class A
{
static void main()
{
String s=console.readline();
char[] ch=s.ToCharArray();
int length=ch.length;
while(length-1>=0)
{
revs=revs+ch[length-1];
}
if(s==revs)
{
Console.WriteLine("polindrome");
}
else
Console.WriteLine("not polindrome");
}
}
Q)Write a program  to reverse the words?
class A
{
static void main()
{
String S="Ram,is,good,boy";
String[] s1=s.split();
for(int i=s1.length-1;i>=0;i--)
{
Console.WriteLine(s1[i]+"");
}
Console.WriteLine();
}
Friends you like my programming please share to your friends  and you want more programs please comment on my post.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Saturday, 15 April 2017

How to Remove Audio From Any Video Using VLC Media Player?

 Akansha     13:22:00     TechnicalQuestions     No comments   

Step by Step Procedure for  Remove(Mute) Audio in a Video Using VLC  Player

A picture is worth a thousand words and a video is worth a thousand pictures and if you see recent trends, users have now started to share more videos than ever before. Present everyone record a video and post in YouTube but they are unable to place good capturing video only because of some interrupt audio. The audio can also be embarrassing sometimes when someone around you is not aware that you are filming. So, Now Just remove the audio and create great holiday trip video. Here learn how to hide a audio in vlc player and how to add background music to vlc media player.

I share a simple trick to mute video using VLC.

Mute Audio Using VLC Player

VLC Media Player Download for PC: 

You are having a personal computer just goto-> filehippo and Download free VLC. VLC media player free download is available. once complete vlc download next run on your pc. 

VLC Media Player is the best one to Mute a audio in Video. So today is the  best time to learn the process step by step.

First Open your VLC Player

VLC Player ->Media

Click on Media

Media->Convert/save

Select Convert/Save Button 

How to Remove Audio From Any Video Using VLC Media Player?
After Clicking that button you get pop-up box on that you see Add Button that can be used to add Audio/Video to Convert.

Now, add your video. 
How to Remove Audio From Any Video Using VLC Media Player?

After completion of adding click on convert/save button, next you will get some features like source, profile, and convert etc.

In profile you have editing option click on edit 
How to Remove Audio From Any Video Using VLC Media Player?

Profile->edit->Audio codec->Unselect Audio option
How to Remove Audio From Any Video Using VLC Media Player?
After unselecting of Audio option the audio will be go to Mute. Next save your muted audio video in your PC.

Go to->Destination File->Browse->Select Path->Save->Click Start
How to Remove Audio From Any Video Using VLC Media Player?
Here, your successfully remove/mute audio in your video.

How to Sync Audio and Video in VLC.

Many of us like a audio in any video because sound effect is better that Mute Here you learn How to how to add audio track in vlc. Yes, previous we are successfully mute/remove audio from video now we are lean adding audio to muted video.

VLC Player is the best for creation of video either adding audio to video or cutting video or muting audio in video etc. And VLC is easy to handle and easy to download.

Open your VLC Player

VLC->Media

Media->Convert/save

Select Convert/Save Button 

After Clicking that button you get pop-up box on that you see Add Button that can be used to add Audio/Video to Convert.

Now, add your video. 

After completion of adding-> select show more options->select play another media synchronously->browse extra media->add your wanted audio->click convert/save->browse destination file->save->and click on start
How to Remove Audio From Any Video Using VLC Media Player?
How to Remove Audio From Any Video Using VLC Media Player?
How to Remove Audio From Any Video Using VLC Media Player?
How to Remove Audio From Any Video Using VLC Media Player?
Here, your successfully add audio in your video.

Recommended Articles


Microsoft Office Word Shortcuts

Brief Descriptions About Methods

Quotes about Memories
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Friday, 17 March 2017

Top 10 Difference between Java and .Net

 Akansha     00:00:00     C#.Net, Java, TechnicalQuestions     No comments   

I just want to clarify one thing. This is not a question on which one is better, that part I leave to someone else to discuss. I don't care about it. I've been asked this question on my job interview and I thought it might be useful to learn a bit more.
In Previous articles We clearly Mention what is java,what is net, and complete explanation about java programming language.

Difference Between Java and .Net

Difference Between Java and .Net

1..NET languages are richer than Java. They have object oriented feature that are absent in java e.g properties,delegates,generics.
2.Many programs that would have been difficult to develop with java have been developed with .NET things like compilers (Mono's C# and VB.NET) 3D game engines (unity game engine) e.t.c
                                         *****Difference between java and .net*****
3.You can code on the .NET platform using Java but you cannot code on Java platform using any of the .NET languages.
4. .Net is Partly about Drag n Drop. Java is all about coding coding and coding. Java can be also drag & drop. It can be done using eclipse & net-beans editor.
                                         *****Comparison of the Java and .NET platforms*****
5.Java is a light weight language and can be run on almost all the OS. Light weight doesn't means that it have less capability then .Net rather it means that it do not trigger the computer with lots of load and Hard Disk space. Whereas .Net needs a very heavy framework to be installed which have higher Hardware requirements too compared to Java.
6. The .Net garbage collector does not wipe away your objects as and when it likes, but will do the garbage collection in more efficient manner than Java. Basically in Java it has been upto the programmer to clean the memory manually whereas this task is moreover automated in .Net
                                         *****Difference between Java and .NET*****
7. Like .Net garbage collector runs at a certain interval and see is there is any memory occupied by any object whose parent is now finished processing (for eg. you closed an application), in this case the garbage collector automatically removes the reference of that object and free up the memory, whereas in Java you need to confirm it that all the objects are destroyed before application quits.
8. On the other hand Java has a major advantage that it can be run on any OS which is able to install JVM. This is a major disadvantage with .Net.
                                         *****What is the difference between java and .Net?*****
9. Also, for .Net a standard development IDE is available that is Microsoft Visual Studio. This tool comparises of all the things you require for your development purpose (Each and every thing you may think need of are at single place).
10..net provide more user friendliness when designing the forms for example in .net we drag and drop controls into form which is not at all mind teasing process.developer can concentrate on the logic or other security issues.
                                         *****What is the difference between java technology and .net technology?*****
11.where as in java code for creating a simple control like button also takes a lot of programming for a developer.
                       *****difference between c and java in tabular form*****
Friends You Like My Post Please Share To Your Friends Through Facebook,Twitter,Google+ ,LinkedIn and Stumble once.
Also Read:Top 10 .Net Interview Questions and Answers
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Friday, 27 January 2017

Brief Description About Master Pages In .Net

 Akansha     00:00:00     C#.Net, TechnicalQuestions     No comments   

Today I would like to write about master pages in Asp.net in these we are placed how to add master page to the solution explorer and how to add child pages to solution explorer with examples.

Master Pages in Asp.net

Master Pages

  • Whenever we want to have common header and common footer with in multiple pages of a web site then we can go for a Master Page implementation.
  • For example Let us assume we are developing a website with 10 pages, All the web pages are having same header and same footer instead of designing same header and same footer with in 10 pages, We will design a master page with the common header and common footer once then the master page we can consume that by that 10 pages which are called as child pages.
  • To develop a master page we have a predefined template called master page.

How To Add Master Page To The Solution Explorer

Step 1: Open solution explorer
Step 2: Select application name, Right click add new item
           It will open add new item window
           Here we are select a predefined template called Master page 
           click add button with this process one master page will be added to the solution explorer                    window  
ASP.Net extension of the master page will be master. Every page will be .Master
Every master page mainly representing with 2 files
1. .Master
2. .Master.cs
1. .Master:
                 This file will support two modes
                  a) Design Mode
                  b) Source Mode

Structure of the Master Page source window(.master)

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body style="height: 182px">
    <form id="form1" runat="server">
    <div>
         <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

2. Master.cs:
                 It will contain the business logic of the master page

Structure of the Master Page  Class File(.master.cs) 

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}

How To Add Child Page To The Solution Explorer

Step 1: Open solution explorer 
Step 2: Select web application name right click select add new item
           It will open a add new item window
           Here select a template called web form click add button
Step 3: Here check the below check box like 
           Select master page
           Click add button
           It will open a window like select a master page. Here select a file MasterPage.master
           Click ok button
With the above process MasterPage will be add to a child page called webform1.aspx
as well as a child page called webform1.aspx will added to solution explorer window

Structure of the Child Page .aspx code window


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>

Structure of the Child Page .aspx.cs


public partial class WebForm1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
}

Are you looking for more articles on .net I wrote More Articles on C#.Net and Asp.Net i think those also helpful to you.
1.Complete info about Access Modigiers
2.Complete info about Exception handling
3.Comple info about Methods Concept
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Thursday, 26 January 2017

Updated Keywords in Java And Usage Of Java Keywords

 Akansha     00:00:00     Java, TechnicalQuestions     No comments   

What are the Updated Java Keywords in 2016

Keywords are the heart of any programming language they play main role in developing programming.so friends first we have to concentrate on java keywords and how many keywords are there in java and what are the keywords and how they work.When and where we can use these keywords properly in our java language.
Java Keywords

Java Keywords in Java

Hi friends, Anyone know the count of keywords in java? and also how these keywords work? and when it can be applicable properly in developing program?.I think some one knows and some ones don't know. That's why we are look our blog! no problem, who are want java keywords for these peoples i place keywords in proper manner and also give best explanation about these keywords.

  1. Abstract
  2. Assert
  3. Boolean
  4. Break
  5. Byte
  6. Case
  7. Catch
  8. char
  9. class
  10. const
  11. default
  12. do
  13. double
  14. else
  15. enum
  16. extends
  17. final
  18. finally
  19. float
  20. for
  21. goto
  22. if
  23. implements
  24. import
  25. instanceof
  26. int
  27. interface
  28. long
  29. native
  30. new
  31. package
  32. private
  33. protected
  34. public
  35. return
  36. short
  37. static
  38. strictfp
  39. super
  40. switch
  41. synchronized
  42. this
  43. throw
  44. throws
  45. transient
  46. try
  47. void
  48. volatile
  49. while
  50. continue 
Here I shared total 50 keywords but all of you don't know about following words
  1. True 
  2. False 
  3. Null
These above 3 true,false&null called pre-defined literals these 3 are not a keywords in java.
In java, one keyword is not used in java that keyword is Goto.This keyword is not used in java because by using this we can get a pointers concept in java its so difficulty that's why we are not used in java .Oracle also deprecated Goto keyword from java.
Found this article useful then share it with others because sharing is caring. Also comment if you have any query then feel free to ask, I will come with the answer.

Do you have More info on Java Programming Language or OOPS Concepts Visits My Previous Posts
1.About Servlets
2.Java Inteview Questions and Answers
3.Logical interview questions for freshers.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Best Tutorial of Constructors in OOPS

 Akansha     00:00:00     Java, TechnicalQuestions     No comments   

Constructors and Methods are the heart for our programming languages like java,c#.net,vb.net etc Any developer first know the value of constructors and methods and what are the difference between methods and constructors.How it can be placed in programming development.

Best Description about Constructors in object oriented programming

In object oriented Programming(oops) have many important topics in this constructors is the one of the good topic.Constructors is most relavent asking question in interview purpose for fresher/experience candidates,the frequently asking questions are what is static constructor and dynamic constructor what are the differences.
constructors

In constructors we hava two types
1.Static Constructor
2.Dynamic Constructor
Static Constructor:It is Common for all like college name.
Dynamic Constructor:It is Individuals for all like student rollno.
The following Questions and Answers are give a datail explanation about constructors.

1)what is constructor?

Ans:constructor is a member of a class which is special type of function

2)constructor can have any return type?

Ans:constructor will not return any value.So it will not have return type.

3)Features of Constructor?

Ans:1.class name and construtor name should be same

2.constructor can contain parameters

3.constructor can invoke automatically when an object is created.

4)what is instance constructor?

Ans:while defining a constructor if we did not use static keyword it is called as instance constructor.

5)what is the purpose of instance constructor?

Ans:purpose of instance constuctor is to initialize instance variables.

6)instance constructors can contain parameters or not?

Ans:instance constructor can contain parameters

7)what is static constructor?

Ans:while defining a static constructor if we have used static keyword which is called as static constructor.

8)what is purpose of static constructor?

Ans:static constructor purpose is to initialize instance variables.

9)How to initialize static variable?

Ans:By using static constructor.

10)When we will go for static variable?

Ans:Whenever we want to represent a comman value for all objects we will declare as a static variable.

11)When class will be loading and when class will be unloading?

Ans:Whenever CLR required to execute any part of the class then it will load concern class from application to CLR.
Whenever application execution is completed then all the classes will be unloading.

12)static constructor is a parameterized or parameterless constructor?

Ans:static constructor is a parameterless constructor

13)When static constructor will invoke?

Ans:when class is loading static constructor will be invoke automatically.

14)When instance constructor will invoke?

Ans:when object is created instance constructor will be invoke

15)How many static constructors in one class?

Ans:A class can contain only one static constructor because by default it is a parameterless constructor.

16)If a class is having one instance constructor and one static constructor which will execute first?

Ans:First static constructor will execute next instance constructor will execute because class will load first then object will create.

Example for static constructor and instance constructor

class Employee
{
static Employee()
{
comname="wipro";
}
internal Employee()
{
eno=111;
ename=ram;
esal=5000;
}
Recommended Articles
1.Tutorial of Methods Concept
2.Tutorial of Parameters Passing Mechanism
3.Tutorials of Multiple Inheritance
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Why Multiple Inheritance Concept Not Applicable In C#.Net

 Akansha     00:00:00     C#.Net, TechnicalQuestions     No comments   

Many of us think we have inheritance topic that will solve any problem and we are implement anything in inheritance concept except one i.e Multiple inheritance.Yes,Multiple inheritance not applicable in c#.net that's why we are go for knowing interface.for implementing multiple inheritance we are using the interface in object oriented programming languages.In the interface we are only use abstract methods and properties.For getting More on interface Concept please read the following paragraph and example.

Tutorial of Interface in C#.net

interface concept in oops
Interface
  • To define a interface we have to use interface keyword.
  • Interface looks like a class but it has no implementation.
  • An interface is a collection of abstract members,by default interface members are public and abstract.

Interface specifing example in C#.Net

Syntax:
interface <Interface name>
{//abstract members
}
Note:Interface name should be start with I
ex:Iemployee,Istudent,Iwork.....
  • Interface members we should implement within derived class without using override keyword.
  • An instance cannot contain fields.
  • Interface cannot contain constructors
  • we cannot implement a property (or)method in interface.
  • Interface cannot contain static members.
  • Using interface we can implement multiple inheritance.
  • we cannot create an object for interface but we can create reference variable for interface.
Example to implement Single inheritance by using interface.
interface Imyinterface
{
void print();
int x
{
get;
set;
}
}
class ram:Imyinterface
{
//implementing interface members
public void print()
{
console.writeline("print is calling");
}
int x;
public int x
{
get
{
return x;
}
set
{
x=value;
}
}
}
claa Program
{
void main()
{
Imyinterface obj=new ram();
obj.print();
obj.x=100;
console.writeline("x value is:"+obj.x);
console.ReadLine();
}
Output:
print is calling
x value is:100
Example for multiple inheritance by using interfaces
namespace interface2
{
interface Inokia1
{
void calling();
void Receiving();
void sendmsg();
void Endcall();
}
class nokia1100:Inokia1
{
public void calling
{
console.writeLine9"nokia1oo is calling");
}
public void receiving
{
console.writeline("nokia1100 is receiving call");
}
public void sendmsg
{
console.writeline("nokia 1100 is sending msg");
}
public void Endcall
{
console.writeline("nokia 1100 is ending call");
}
}
interface Inokia2
{
void WiFi()
{
void vediocalling();
}
class nokiaAsha:Inokia1,Inokia2
{
public void calling
{
console.writeline("nokia asha is calling");
}
public void receiving
{
console.writeline("nokiaAsha is receiving call");
}
public void sendmsg
{
console.writeline("nokia asha is sending msg");
}
public void endcall
{
console.writeline("nokia sha is ending call");
}
public void WiFi
{
console.writeline(nokia asha wifi is on");
}
public vedio calling
{
console.wroteline('nokiaasha vediocall is supporting");
}
}
class program
{
void main()
{
Inokia1 obj1=new Nokia1100();
obj1.calling();
obj1.receiving(0;
obj1.sendmsg();
obj1.endcall(0;
obj1=new NokiaAsha();
obj1.calling();
obj1.receiving();
obj1.sendmsg();
obj1.endcall();
Inokia2 obj2=(INOKIA2)OBJ1;
obj2.WiFi();
obj2.vediocalling();
console.ReadLine();
}
can we implement multiple inheritance with a combination of one class and multiple interface.
Yes,but first we have to write class name then we have to write interfaces names like below
interface I1
{
}
interface I2
{
}
class ram
{
}
class ram:bc,I1,I2
{
}
Q)Whan we will go for interface?
whenever we wnt to implement all the behaviours in future derived classes.we will go fo interface.As well as to implement multiple inheritance we will go for interface.
Realtime example for interface
namespace Bankex
{
interface Iaccount
{
void openAccount(double IntAmt);
void  withdraw(double amt);
}
class currentAccount:Iaccount
{

int acNo;
String acName;
double bal;
internal current account(int acno,string acname)
{
this.cno=acno;
this.acname=acname;
}
//implementing interface methods
public voidnopenAccount(double IntAmt)
{
this.bal=IntAmt;
Console.writeLine('your account is created successfully");
Console.writeLine('your account details are'");
Console.writeLine('your account no is;"+acno);
Console.writeLine('your account name is:"+acname);
Console.writeLine('your account current balance is:"+this.bal);
}
public void withDraw(double amt)
{
if(this.bal>=amt)
{
this.bal=this.bal-amt;
Console.writeLine('your withdraw is sucessful");
Console.writeLine('your current balance is:"+this.bal);
}
else
{
Console.writeLine("insufficient funds");
}
}
}
class savingAccount:Iaccount
{
int acno;
String acName;
double bal;
internal SavingAccount(int acno,string acname)
{
}
public void openaccount(double InAmt)
{
if(InAmt>=1000)
{
this.bal=InAmt;
Console.writeLine('your account  is created");
Console.writeLine('your account current balance is:"+this.bal);
}
else
{
Console.writeLine('your account  cannot be created,min bal should be 1000");
}
}
public void withdraw(double amt)
{
if(this.bal-amt>=1000)
{
this.bal=this.bal-amt;
Console.writeLine("withdraw is successful");
Console.writeLine('your balance is:"+this.bal)
}
else
{
Console.writeLine("Insufficient funds");
}
}
}
class program
{
void main()
{
{
iaccount cust1=new currentAccount(111,"Rama");
cust1.openaccount(2000);
cust2.WithDraw(2000);
cust1=new savingaccount(222,"Ravi");
cust1.openAccount(4000);
cust1.withdraw(2000);
Console.ReadLine();
}
}
}
Recommended Articles
1.About Master Pages 
2.Passing Parameter Concept 
3.Methods Concept
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Friday, 18 November 2016

Download UNLOCK ROOT program to work for all phones

 Akansha     16:00:00     TechnicalQuestions     No comments   

How to Root Any Android Phone 

How to Root Any Android Phone!
The unlock root program is one of the most powerful specialized in the work programs Root. Root of all Mobiles Android, Samsung, Galaxy, Sony, and other versions which supports the unlock root program more than 50 Android phones, many users of Android phones carrying some applications from the store, or games and these applications do not work , but the existence recounted in mobile, and most of them resort to shops selling phones to work your root then you will not need any more to change your smart phone, or Still to false software, you can now through the unlock root program of work of Root and run all applications that need to be recounted , it is unique and wonderful and easy program to use and also fast at work in addition to the piece he recognize any smart phone without the need for the mode of definition or another program , it is the most important characteristics unlock root program is very nice features and the click of a button the program can work Root your Smartphone, you can also click remove your root of your phone each button complete ease without the need to use other software, it is the most important features of the program that does not affect any device and is familiar with all types of Android devices, and allows you to remove your root click of a button. It is the most wonderful and software compatible with all versions of Windows.
First Download unlock root program in your system

Working Process of unlock root program in all phones

Below I place step by step procedure for unlock android mobile using unlockroot software.
First Download unlock root program in your system do you want get that software please visit unlockroot official website.
1. After downloading the software is installed on the device to install any other program
2. The run unlock root software as shown in the picture:
How to Root Any Android Phone! insystem
3. Connect your Android phone to your computer via USB and wait until the end of the computer recognize your phone as shown in the picture:
Root Any Android Phone click yes
4. After the completion of known computer by clicking on your mobile Android Root found in your unlock root program
5. After clicking on the word will unlock root brings you this letter as shown in the following picture, press yes:
Root Any Android Phone click yes to restart
6. After pressing the Yes I wait a little, You will receive a message telling you that it has completed a work of Ruth mobile Android and that he wants to work to restart the phone, (click Yes) as shown in the picture:
Root Any Android Phone click yes to restart
7. Wait a little will brings you another letter you say you want to download the program for the battery Press the (not)
Root Any Android Phone click no
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Wednesday, 16 November 2016

How Many Members Know Microsoft Office Word Shortcuts?

 Akansha     15:56:00     TechnicalQuestions     No comments   

Microsoft word Document

What are the shortcuts available in Microsoft Office Word?

Below I Place what are the shortcuts available using Ctrl, Shift, and Alt in Microsoft Office Word. The below all elements are helpful to Move the work in fast and easy way. Learn the shortcut and try practical and speed your typing/working speed.

Microsoft Office Word Shortcuts Using Ctrl

Ctrl+C=Copy the element
Ctrl+V=Paste the element
Ctrl+S=Save the document
Ctrl+X=cut the specific/selected element
Ctrl+A=select the element
Ctrl+Z=Undo the element
Ctrl+Y=Redo the element
Ctrl+W=Getting save/not save/cancel popup Menu
Ctrl+E=Moving specific word from Left to Center
Ctrl+R=Moving Specific Word to Left to right
Ctrl+U=Underline the specific element/word.
Ctrl+I=Getting the text in Italic Format
Ctrl+B=Getting the Text in Bold Format
Ctrl+O=Open the specific file from system
Ctrl+P=Print the overall Document.
Ctrl+D=Getting Font(Cascading Style Sheets) Document
Ctrl+G=For finding specific character or word from overall document
Ctrl+H=getting Replaced Document
Ctrl+J=For setting alignment for specific word/element
Ctrl+K=For finding current Address in our system
Ctrl+L=Setting alignment from left to right
Ctrl+N=Opening New Document
Ctrl+M=Getting space for specific line
Ctrl+F1=Insert element
Ctrl+F2=Getting Draft Document
Ctrl+F4=Close the current Document
Ctrl+F9=Getting open and closing braces at a time.
Ctrl+F10=Minimize and Maximize the word.
Ctrl+F12=Open the Document

Microsoft Office Word Shortcuts Using Shift

Shift+A=Getting Specific Letter in Caps
Shift+->=For selecting the element from left
Shift+<-=For selecting the element from right
Shift+◘(Up arrow)=element selection move to top
Shift+☻(Down Arrow)=element selection move to down
Shift+F1=Formatting or select text
Shift+F3=For Converting specific element/word from lowercase to uppercase
Shift+F4=Curser Move to start of Document
Shift+F5=Moving Cursor to one element to another
Shift+F6=The Keyboard Shortcuts are displayed in word document those are used for getting the elements in easy manner.
Shift+F7=search for specific word.
Shift+F10=Getting word menu.
Shift+F12=Save the Document.

Microsoft Office Word Shortcuts Using Alt

Alt+F4=Close the current window.
Alt+F5=Minimize the word Document
Alt+F10= Minimize the word Document
Alt+F7=to get right click menu for starting word
Alt+F8=To get Macros Menu
Alt+F11=Get Visual basic element.
Alt+W=To get Word View layout Menu in these we mainly have print word, full screen, Draft, and Weblayout.
Alt+R=Get Review layout Menu
Alt+E=Goto word software
Alt+T= Goto word software
Alt+I= Goto word software
Alt+O= Goto word software
Alt+A= Goto word software
Alt+V= Goto word software
Alt+Y=Summarizing Purpose
Alt+P= Get Page layout Menu
Alt+S=Get References
Alt+F=Getting Word Document startup menu
Alt+H=Home Layout Menu
Alt+N=Insert Layout Menu
Alt+M=Mailings
Alt+X=Coding Numbers like 00060
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Friday, 11 November 2016

Passing Parameter Mechanism in C#.Net and Java

 Akansha     12:00:00     C#.Net, Java, TechnicalQuestions     No comments   

After Listening about the topic passing parameter mechanism in C#.net, first i feel very difficult but after reading and doing some practical examples i feel very easy.The Parameter passing mechanism plays key role in program development so first concentrate on some tips for parameter passing.Here i am not only placing definition i place My practically doing examples.
Here i Covering the topics are Introduction about parameter passing,what is parameter, how parameter helpful to us,types parameter passing, and types of parameter passing mechanism.
Actually the passing parameter mechanism same in C#.net and Java but the examples are different.C#.net develpers just follow this concept and Java developers or learners just modify your examples in java process.
Passing Parameter mechanism

Passing Parameter Mechanism 

Parameter Passing easy to understand But when develop C#.Net program at that time confusion is came Which Parameters is pass or at this time parameter passing is necessary or not.so,you want get more clarity on parameter passing we simply develop any project with short period so,friends please concentrate on the below topic i write clear description about parameter passing i hopeful it is understand to all and also helpful in interview purpose.
                          *****Introduction about Parameters*****

Introduction about Parameter

Passing a value to function is called as passing parameter mechanism

What is parameter?

A variable which is declared with in the method signature is called as parameter.

Why Parameter?

Whenever a method is required some value for it's functionality from outside we will go for parameter.                    

Types of Parameters:-

               In C#.net we have two types of parameters.
1.Formal Parameter
2.Actual Parameter
  *****Types of parameters*****

1.Formal Parameter

         called function parameter is formal parameter.
 *****Formal Parameters*****

2.Actual Parameter

         Calling function parameter is actual parameter.
Ex;-class Myclass
{
internal void add(int a,int b)//called function,formal parameters
{
int c=a+b;
Console.WriteLine("result is:"+c);
}
}
class Program
{
static void Main()
{
Myclass obj= new Myclass();
int x=10;
int y=20;
obj.add(x,y);//calling function,actual parameters
}
}
**************Actual Parameters*****************
C#.net will support three types of passing parameter mechanism
1.Call by value
2.Call by reference
3.Call by out

1.Call by value

In call by value when formal parameters are modified the modifications will not be reflected back to actual parameters.
In call by value while passing the parameter we will pass the actual value.
Ex:-class Myclass
{
intenal void PayFee(int a)
{
a=a+1500;
Console.WriteLine("a value is:+a);
}
}
class Program
{
static void Main()
{
Myclass obj=new Myclass();
int x=1000;
obj.PayFee(x);
Console.WriteLine("X value is:"+x);
Console.ReadLine();
}
}
*****call by value in parameter passing*****

2.Call by reference

       In call by reference when formal parameters are modified those modifications will be reflecting back to actual parameters.
In call by reference while passing the parameter we will pass the address of value.
Ex:-class Myclass
{
intenal void Add(ref int a)
{
a=a+1500;
Console.WriteLine("a value is:+a);
}
}
class Program
{
static void Main()
{
Myclass obj=new Myclass();
int x=1000;
obj.Add(ref x);
Console.WriteLine("X value is:"+x);
Console.ReadLine();
}
}    *****call by reference parameter passing*****

3.Call by out

call by out is same as call by reference,In call by out also when formal parameters are modified those modifications will be reflecting back to actual parameter.
While passing parameter or while catching parameter we should use out keyword.
In call by out also with the help of parameter we will pass the address.
out parameter is not required to initialize,If we initialize also CLR will ignore that value.
Ex:-class Myclass
{
internal void PayFee(out int totfee)
{
int admFee=1500;
int semFee=1200;
totFee=admFee+semFee;
Console.WriteLine("total fee is:"+totFee);
}
}
class Program
{
void Main()
{
Myclass obj=new Myclass();
int x;
obj.PayFee(out x);
Console.WriteLine("x value is:+x);
Console.ReadLine();
}
}        *****call by out parameter passing*****
Are you Looking For More Topics on C#.Net please visit My Previous Post i feel those are helpful to you
Introduction about Methods in C#.Net
Exception handling Mechanism explanation
Logical Programming Examples on whileloop
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Older Posts Home

Popular Posts

  • Brief description about Delegates
    Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadv...
  • How do I increase organic traffic within One Month
    There’s plenty you can do boost organic site traffic at no cost except your time: Optimize for your personas, not search engines.  ...
  • Top Most Differences between windows,web and console applications
    You want to get clarity on any topic the differences very helpful at that time and in these we are having top 5 differences between conso...
  • Brief Description about Multicast Delegate
    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time. Multicast ...
  • How to Remove Audio From Any Video Using VLC Media Player?
    Step by Step Procedure for  Remove(Mute) Audio in a Video Using VLC  Player A picture is worth a thousand words and a video is worth a t...
  • Connected and Disconnected Data Access Architecture
    The Ado.Net Frame Work Supports Two Models of Data Access Architectures one is Connected Oriented architecture and second One is Disconnec...
  • Best Good Afternoon wishes greetings and quotes
    Top Most Good Afternoon Wishes Good Afternoon wishes are gives a relaxation in afternoon time.This wishing can be done between 12 to 3 p...
  • Missing My Friend Quotes : Friendship Day Quotes 2017
    Friends today my article about missing friends and moments with them. Here you are seen the best friendship quotes and some  feelings when...
  • Best Methods To Get A Cheap Home Insurance Deal!
    Cheap Home Insurance Home Insurance is seen as a luxury but in all honesty it is a necessity especially in the case of natural disast...
  • swami vivekananda best motivational Quotes
    Some Peoples are always have a negative thinking & bad mood their heart always filled with sadness & they are in depression mood.e...

Categories

  • Entertainment (67)
  • TechnicalQuestions (58)
  • Quotes (11)
  • C#.Net (8)
  • Java (8)
  • ValentinesDay (4)
  • SEO (3)
  • Home
  • About Us
  • Disclaimer
  • Privacy Policy
  • Sitemap

Copyright © 2015-2017 Good Friends 5.All Rights Reserved• And Our Sitemap • All Logos and Trademark Belongs To Their Respective Owners•