Hello!
Welcome to my blog and thank you for stopping by :)
I have always been one who liked to help. This blog, in a way, is my attempt to “help” in some small way and has been on my mind for years, actually.  I’ll explain.

WHY I STARTED THIS BLOG?

I would take a moment to explain why I started this blog and more importantly what value I think YOU can get out of it.
I wanted to create website/blog  for quite sometimes when I was in high school, but I wasn’t sure about what I would blog about, but I decided I’d start a blog anyway. From May 2013 I started to get involved more closely.
I started my first website in August 2013 with free hosting and domain name. I began to take interest in blogging. I started learning how to create a blog, how to code and how to maintain it. I created few Blogspot blogs as well. I did lot of research, reading every ebook I could. I read tons of articles, used various tools to learn the tricks of the trade. My thirst for learning the latest web technologies such as HTML, CSS equipped me with the skill of web design.
I have learned and developed few skills in this time and I can definitively argue that I have grown both professionally and personally.
I thought it would be a really good idea to help educate others and raise awareness along the way. I want to share what I have learned so far and what I continue to learn through blogging so that I can be of assistance in some way to improve their blogs.
Continue Reading

C# Create an interface Itransaction contain void showTransaction(), double getAmount() ,Create class Transaction that inherit Itransaction and contains private string tCode; private string date; private double amount; add default constructor and parametric constructor to initialize values and implement void showTransaction(), double getAmount()in class.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLOGGER
{
    interface Itransaction
    {
        void showTransaction();
        double getAmount();
    }
    class Transaction : Itransaction
    {
        string tCode;
        string date;
        double amount;
        public Transaction()
        {

        }
        public Transaction(string a, string b, double c)
        {
            this.tCode = tCode;
            this.date = date;
            this.amount = amount;
        }
        public double getAmount()
        {
            Console.WriteLine("Enter amount");
            amount = Convert.ToDouble(Console.ReadLine());
            return amount;
        }
        public void showTransaction()
        {
            Console.WriteLine("Enter transaction code");
            tCode = Console.ReadLine();
            Console.WriteLine("Enter date of transaction");
            date = Console.ReadLine();
        }
        public void show()
        {
            Console.WriteLine("The tcode is " + tCode);
            Console.WriteLine("The date is " + date);
            Console.WriteLine("The amount is " + amount);
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            Transaction obj = new Transaction();
            obj = new Transaction("0", "0", 0);
            obj.getAmount();
            obj.showTransaction();
            obj.show();
            Console.ReadKey();


        }
    }
}
OUTPUT



Continue Reading

C# how to make abstract class and how to use abstract keyword..

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace abstract_keyword
{
  abstract class JHON
    {
     public  abstract void showdata();
  }
    class b:JHON{

        public override void showdata() {

            Console.WriteLine("This is test of abstract modifier");
        }
   
    }
    class c : JHON {

        public override void showdata()
        {
            Console.WriteLine("AFTER INHERITE and ovveride the result is this");
        }
   
    }

    class demo{
        static void Main(string[] args)
        {

            anas obj1 = new b();
            obj1.showdata();
            anas obj2 = new c();
            obj2.showdata();
            Console.ReadKey();

        }
    }
}

OUTPUT



Continue Reading

C# How to make interface using multilevel inheritance

using System;

namespace @interface
{
    interface ifirst
    {
         void name();
    }
    interface isecond
    {
      void sec();
   
    }
    class show:ifirst,isecond  {
       void ifirst.name()
        {
        Console.WriteLine("STUDENT NAME IS Jhon");
       
        }
    void isecond.sec(){
   
    Console.WriteLine("SEC - C 2017");
   
    }
 
    }

    class demo{
        static void Main(string[] args)
        {

            show obj1 = new show();
            ((ifirst)obj1).name();
            ((isecond)obj1).sec();
            Console.ReadKey();
        }
    }

}

OUTPUT




Continue Reading