Skip to main content

Posts

Sealed Classes and Sealed Methods

Sealed Class Sealed class is a special kind of class in C# which is used to prevent the inheritance to next level. Any class with sealed keyword cannot be derived to any subclass. We will get a compile error if we try to define base class as sealed class.


sealed class A { }
class B: A { } //CompileError

In the above example if we see, Class B tries to inherit from class A which is sealed. We will get a compiler error.

Now if we move the sealed keyword from Class A to Class B and try to inherit from class B we will get a compile error ('C': cannot derive from sealed type 'B').


class A { }
sealed class B: A { }
class C : B { } //Compile Error

Below code should be fine, as Sealed class should be the last in the inheritance hierarchy.

class A { }
class B : A { }
sealed class C : B { }

Sealed and Abstract modifiers cannot be used together as Abstract Class has to provide the functionality and Sealed will prevent that.Sealed class cannot be a base class, it can only be the last deri…
Recent posts

How to attach an Email to another Email in Outlook

How to attach an Email to another Email in OutlookSometimes you want to attach an email to another email as proof to your current mail, in this situation you just cant copy and paste the mail chain in the mail body. Lets see the correct way of doing that. Click on new mail, new window will be opened/Reply to the existing mailIn the tool bar click on message tab, under it you will find attach file, attach item, signature etc. 
Click on attach item, from the drop down menu select Outlook item.A dialog box will appear, in that browse and select the mail which you want to attach. 
You can even attach business card, for that in 3rd step select attach Business Card instead of Outlook item.

How to Download YouTube Videos on Android Device

How to Download YouTube Videos on Smart Devices
We all know that YouTube is the best video-sharing website. More than 100 hours of Video are uploaded to YouTube every minute. YouTube.com owns a Global Rank # 3.
Since there has been a huge development in Smartphones, YouTube has launched app for Smartphones and other smart devices like Tablets, ipads, ipods etc Operating on different Operating Systems like Android, IOS, Blackberry etc. YouTube app is very handy and easy to use, and gets updates every now and then. Mobile make almost 40% of YouTube's global watch time.
There’s so much great content on YouTube it’s easy to find videos you want to watch again and again. When you come across any crazy video, you might want to download it so you don’t have to rely on the internet to watch it next time. Here’s how to download a video from YouTube on Android with the help of an app called Videoder.
Step 1: Open Play Store and download Videoder app. ( if it is not available on Playstore, yo…

How to remove Shortcut Virus from Pendrive/Memory Card without Antivirus

Remove Shortcut Virus from Pen Drive and Memory Cards without Antivirus
Many of us had faced or facing this Shortcut Virus issue with our Pen Drives and Memory Cards. Compare to other flash drives like memory cards,external hard drives etc, we face this problem more with pendrives because we use Pendrives a lot so there are more chances of getting affected with Shortcut Virus.


 All the folders and files in the Pendrivegets converted to Shortcuts and you are unable to access your files. To get rid of this issue we simply format our Pendrive. But sometimes we have important data in our Pendrive and we don't want to lose that data, in that case we can follow below steps to get rid of SHORCUT VIRUS without any Antivirus software.

Insert your infected Pendrive and follow the steps..



Step 1: Open Command Prompt.
(Press Win key + R and type cmd and click on OK)


Step 2: Now type attrib -h -r -s /s /d g:\*.*and press Enter (Here i assume your pendrive letter as g)
(You can copy the above comm…

How to get IOS 7 look and feel on Android

Get IOS 7 like Control Center on Android Phone with the help of an App
One of the cool features of IOS 7 is its Control Center, this allows users to access quick settings like airplane mode, vibration mode, WiFi, Bluetooth, Brightness Control etc. To access Control Center user has to swipe-up the screen from bottom.  Now Android users can also experience this handy feature and get the look and feel of IOS 7 on their Android Devices with the help of a new app called Control Center. This App was launched recently and in the beginning  it faced Copyright issues with Apple but now it is available for download on Play Store.  Control Center allow us to customize the settings of the app according to our choice. We can change the order of toggles, add app shortcuts of our choice, Configure Touchable Area etc. This app makes the android device very handy and quick. Sometimes while using another app if we want to change the brightness of the screen or turn off Bluetooth, instead of going to se…

How to Download YouTube Videos for Free without any Software

How to Download YouTube, MetaCafe, Dailymotion, Vimeo Videos for Free

YouTube is a Heaven for watching videos online. Downloading YouTube Videos is quiet simple task. There is no need of installing any Software or paying for any Online Service. You just have to go one of the following sites KeepVid (Most Preferred) or SaveVid  and enter the URL of the Video(YouTube, Dailymotion or Vimeo) which you want to download and Press Enter. Now the site may ask you for the install of Java Applet, let it install and run on this Site. Here's how you do it..

Step 1: Open KeepVid Website or SaveVid Website




Step 2: Copy the URL of the Video you want to Download and Paste it in the Download Bar of KeepVid Website or SaveVid Website

Step 3: Now Click "Download". Site may ask you for installing of Java Applet, let is install and Run on this Site.




Step 4: Now you will be Presented with different Download Links.(Select the Quality and Format of Your Choice and Click to Download the Video).

Kee…