In computer science, abstraction is the process by which data and programs are defined with a representation similar in form to its meaning (semantics), while hiding away the implementation details. Source : WikiPedia abstraction – a concept or idea not associated with any specific instance. Sections: What is abstraction Types of abstraction How to use abstraction in … Continue reading Understanding abstraction in java
Tag: Programming Tutorial
Adding and accessing custom sections in your C# App.config
So I recently thought I’d try using the app.config file to specify some data for my application (such as URLs) rather than hard-coding it into my app, which would require a recompile and redeploy of my app if one of our URLs changed. By using the app.config it allows a user to just open up … Continue reading Adding and accessing custom sections in your C# App.config
In C++, what’s a virtual destructor and when is it needed?
In C++, what’s a virtual destructor and when is it needed? As you may know, in C++ a destructor is generally used to deallocate memory and do some other cleanup for a class object and it’s class members whenever an object is destroyed. Destructors are distinguished by the tilde, the ‘~’ that appears in front … Continue reading In C++, what’s a virtual destructor and when is it needed?
What is name hiding in C++?
What is name hiding in C++? Name hiding in C++ is best illustrated by an example – so take a look at this simple code below and then read on for an explanation: Name Hiding in C++ Example It looks like the call to the someFunc function in the main function in the code above … Continue reading What is name hiding in C++?
Difference between Int32.Parse(), Convert.ToInt32() and Int32.TryParse()
Int32.Parse() Int32.Parse (string s) method converts the string representation of a number to its 32-bit signed integer equivalent. When s is a null reference, it will throw ArgumentNullException. If s is other than integer value, it will throw FormatException. When s represents a number less than MinValue or greater than MaxValue, it will throw OverflowException. Int32.TryParse() Int32.TryParse(string s, out int result) method converts the specified string representation of 32-bit signed integer … Continue reading Difference between Int32.Parse(), Convert.ToInt32() and Int32.TryParse()
Restore SQL Server Database Using C#
In previous post SQL Server Database BackUp using C#, I explained how to take backup of SQL Server database using C#. Today I am going to describe how to restore SQL Server database backup programmatically using C# and SQL Server Management Objects (SMO). You can also check more articles related to C#, ASP.Net , SQL Server and … Continue reading Restore SQL Server Database Using C#
SQL Server Database BackUp using C#
There are various ways to take the SQL Server database backup. You can take the database backup using SQL Server backup wizard or using SQL Server BackUp Database statement. Here I am going to describe how to take the SQL Server database backup programatically using C# and SQL Server Management Objects (SMO). In my previous … Continue reading SQL Server Database BackUp using C#
C/C++/CLI Hello world project
Hi everyone, just take a minute to see this code. The result is: Enter your name: Edward Hello Edward. Welcome to C/C++/CLI world. We found 3 languages just in less than 10 lines code.