Java abstract Example 2

Java abstract Example 2

abstract class Animal{ abstract void makeSound(); public void run(){ System.out.println(“i can run “); } } class Cow extends Animal{ void makeSound(){ System.out.println(“Cow sound is : mooh “); } } class Cat extends Animal{ } public class AbstractEx { }

Java Abstract class Example

abstract class Hello{ public void display(){ System.out.println(“hello there”); } public abstract void show(); } class Test extends Hello{ public void show(){ System.out.println(“hi there too late”); } } public class AbstractClass { }

understanding java maps

A Map is an object that maps keys to values. A map cannot contain duplicate keys: Each key can map to at most one value. It models the mathematical function abstraction. The Map interface includes methods for basic operations (such as put, get, remove, containsKey, containsValue, size, and empty), bulk operations (such as putAll and clear), and collection views (such as keySet, entrySet, and values). The Java platform contains three general-purpose Map implementations:  HashMap.  TreeMap. LinkedHashMap. […]

Three Types of Collection framework in java

There are also three generic types of collection: ordered lists, dictionaries/maps, and sets. Ordered lists allows the programmer to insert items in a certain order and retrieve those items in the same order. An example is a waiting list. Two interfaces are included in the Ordered Lists which are the List Interface and the Queue […]

10 sites where to learn code for free

When looking for place to start after you have made your mind to code sometimes my be intimidating tho you when you are a beginner. From today worry no more i have provided you some of the well known platform you are going to use to use in your career most of hat you need […]

why tech skills html css is enough to get you started

Understanding Html and CSS is the beginning of web development, having mastered this skills will lessen your heavy work of web programming. Most people ignore this part and jump into programming language which kills most of there time at the end of the day they find themselves not competent creating simple web pages even web […]

25. Social Media Marketing Tools for programmers and freelancers

Social media marketing continues to be one of the most cost-effective online marketing strategies. Unlike paid advertising, it’s possible to grow your visibility and build awareness about your brand without directly paying for it. However, if you want your social media campaigns to scale, you simply can’t do it without some important tools in your […]

How to increase your web traffic

1. Engage Online Be active in online groups and on websites that are relevant to your business and community. Comment on blogs and social media posts, answer questions people are posting, and participate in conversations about your industry. The more you engage with your community, the more exposure and profile visits you get. If your […]

10 ways to stay on top of your site

1.Use organic post targeting Targeting your posts isn’t just for Facebook ads. You can target your organic posts. You can target the audience for your posts based on a few options including: Education, location, interests, age and gender Date for your post to stop showing in the News Feed You will need to have this […]

RSS20
Follow by Email
Facebook20
Pinterest9