How to create React project using command prompt? Ans :- firstly you have to install node js and npm in your system after after that follow these steps:- Step 1:- Open command prompt and for create project write npx create-next-app Step 2:- Now it will say to write your Project name. Step 3 :- Now write your project name as per your choice. Step 4 :- Now it will ask what is your needs to create a project Step 5 :- Now you can see dependencies are Installed as shown in below image Step 6 :- Now use this command for change the directory Step 7 :- Now you can see below directory is changed Step 8 :- Now for open the project in Vs code use this command code . Step 9 :- Now you can see your project is directly opened in Visual Studio Code
Q. How to achieve abstraction ? Ans :- we can achieve abstraction by using abstract classes and Interfaces. Abstraction in java can be achieved in two ways: Using abstract classes:- Abstract classes achieve partial abstraction as concrete methods can also be defined in them. Using Interfaces :- Interfaces achieve complete abstraction as only abstract methods can be defined in them.
Comments
Post a Comment